From f84b6cbc3ada0a3779439dd7e172009c55fbc9bc Mon Sep 17 00:00:00 2001 From: zYne Date: Tue, 19 Jun 2007 00:00:36 +0000 Subject: [PATCH] --- .../new/docs/en/exceptions-and-warnings.txt | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 manual/new/docs/en/exceptions-and-warnings.txt diff --git a/manual/new/docs/en/exceptions-and-warnings.txt b/manual/new/docs/en/exceptions-and-warnings.txt new file mode 100644 index 000000000..0872ac4f8 --- /dev/null +++ b/manual/new/docs/en/exceptions-and-warnings.txt @@ -0,0 +1,31 @@ +++ Manager exceptions + +Doctrine_Manager_Exception is thrown if something failed at the connection management + + +try { + $manager->getConnection('unknown'); +} catch (Doctrine_Manager_Exception) { + // catch errors +} + + +++ Relation exceptions + +thrown if something failed during the relation parsing + +++ Connection exceptions + +thrown if something failed at the database level + + +try { + $conn->execute('SELECT * FROM unknowntable'); +} catch (Doctrine_Connection_Exception) { + // catch errors +} + + +++ Query exceptions + +thrown if DQL parsing fails somehow