crystal-db icon indicating copy to clipboard operation
crystal-db copied to clipboard

Use common exception hierarchy for all drivers

Open spalladino opened this issue 8 years ago • 1 comments

Ensure that exceptions thrown from https://github.com/bcardiff/crystal-pg/blob/feature/db-0.3.0/src/pq/error.cr, for instance, extend from DB::Error

spalladino avatar Dec 14 '16 23:12 spalladino

~~Also ensure IO::EOFError or connection lost is raised as DB::ConnectionLost for pool retry logic in crystal-pg. (check if PQ::ConnectionError should inherit DB::ConnectionLost)~~ done

bcardiff avatar Dec 15 '16 02:12 bcardiff