isError should only check the DBAL error classes