DCOM-105: Common base exception class #402

doctrinebot opened this Issue Aug 27, 2012 · 4 comments

2 participants


Jira issue originally created by user till:

Per our discussion on IRC/Twitter.

It would be nice if all exceptions thrown had a common base, so something like this is possible to catch all exceptions from Doctrine:

try {
    // some code here
} catch (\Doctrine\Common\BaseException $e) {
    // something in Doctrine threw an exception, handle it here

(The name is just an example.)

For reference:


Comment created by stof:

Instead of a base class (which forbids extending the SPL exception), I would go the same way than Symfony2 and ZF: using an interface.


Comment created by till:

That's basically what the PEAR2 RFC is doing.


Comment created by @ocramius:

Duplicate of DCOM-80


Issue was closed with resolution "Duplicate"

@Ocramius Ocramius was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot closed this Dec 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment