custom exceptions (BC break) [WIP]

Inspired at http://www.doctrine-project.org
added some tests