dodb.cr/src/fsdb/exceptions.cr

18 lines
305 B
Crystal
Raw Normal View History

2019-12-11 22:08:26 +01:00
class DODB::MissingEntry < Exception
2019-12-11 22:08:26 +01:00
getter index : String?
getter key : String
def initialize(@index, @key)
super "no entry in index '#{@index}' for key '#{@key}''"
end
def initialize(@key)
super "no entry for key '#{@key}' in database"
end
end
class DODB::IndexOverload < Exception
2019-12-11 22:08:26 +01:00
end