Exception: Tarantool16::DBError
- Inherits:
-
Error
- Object
- StandardError
- Error
- Tarantool16::DBError
show all
- Defined in:
- lib/tarantool16/errors.rb
Defined Under Namespace
Classes: KnownDBError, UnknownDBError
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.with_code_message(n, m = "") ⇒ Object
140
141
142
143
144
145
146
147
148
|
# File 'lib/tarantool16/errors.rb', line 140
def self.with_code_message(n, m="")
if klass = DBErrors[n]
klass.new(m)
else
e = UnknownDBError.new(m)
e.return_code = n
e
end
end
|
Instance Method Details
#inspect ⇒ Object
150
151
152
|
# File 'lib/tarantool16/errors.rb', line 150
def inspect
"<#{self.class.name} return_code=#{return_code} message=#{message}>"
end
|