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