Commit 39f33a87 authored by zYne's avatar zYne

--no commit message

--no commit message
parent 330156e7
...@@ -12,17 +12,18 @@ try { ...@@ -12,17 +12,18 @@ try {
++ Relation exceptions ++ Relation exceptions
thrown if something failed during the relation parsing Relation exceptions are being thrown if something failed during the relation parsing.
++ Connection exceptions ++ 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"> <code type="php">
try { try {
$conn->execute('SELECT * FROM unknowntable'); $conn->execute('SELECT * FROM unknowntable');
} catch (Doctrine_Connection_Exception) { } catch (Doctrine_Connection_Exception $e) {
// catch errors print 'Code : ' . $e->getPortableCode();
print 'Message : ' . $e->getPortableMessage();
} }
</code> </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