shard-crystal-db/src/db/error.cr
Brian J. Cardiff 751f8b26ac Transactions
* dsl, state checks
* define transaction sql commands in connection
2016-12-13 16:47:23 -03:00

23 lines
324 B
Crystal

module DB
class Error < Exception
end
class MappingException < Exception
end
class PoolTimeout < Error
end
class PoolRetryAttemptsExceeded < Error
end
class ConnectionLost < Error
getter connection : Connection
def initialize(@connection)
end
end
class Rollback < Exception
end
end