EZP-22151: updated exceptions for DBAL change
EZP-22151: fixed throws hint