Added custom exceptions [WIP]

Inspired at http://www.doctrine-project.org
please mark commit as BC break.