Commit 39f33a87 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 330156e7
......@@ -12,17 +12,18 @@ try {
++ Relation exceptions
thrown if something failed during the relation parsing
Relation exceptions are being thrown if something failed during the relation parsing.
++ Connection exceptions
thrown if something failed at the database level
Connection exceptions are being thrown if something failed at the database level. Doctrine offers fully portable database error handling. This means that whether you are using sqlite or some other database you can always get portable error code and message for the occurred error.
<code type="php">
try {
$conn->execute('SELECT * FROM unknowntable');
} catch (Doctrine_Connection_Exception) {
// catch errors
} catch (Doctrine_Connection_Exception $e) {
print 'Code : ' . $e->getPortableCode();
print 'Message : ' . $e->getPortableMessage();
}
</code>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment