custom exceptions [WIP]

Inspired at http://www.doctrine-project.org