Updated MappingException and Rollback derive from DB::Error (#70)

Make all db exceptions derive from DB::Error
This commit is contained in:
Lamonte 2017-11-07 20:18:43 -06:00 committed by Brian J. Cardiff
parent 1e882e35d2
commit e40c19d195

View file

@ -2,7 +2,7 @@ module DB
class Error < Exception class Error < Exception
end end
class MappingException < Exception class MappingException < Error
end end
class PoolTimeout < Error class PoolTimeout < Error
@ -27,6 +27,6 @@ module DB
class ConnectionRefused < Error class ConnectionRefused < Error
end end
class Rollback < Exception class Rollback < Error
end end
end end