[WIP] [DBAL-407] Refactor exceptions