Exception: Tarantool::StatusCode
- Inherits:
-
TarantoolError
- Object
- StandardError
- TarantoolError
- Tarantool::StatusCode
- Defined in:
- lib/tarantool/exceptions.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(code, msg) ⇒ StatusCode
constructor
A new instance of StatusCode.
- #to_s ⇒ Object
Constructor Details
#initialize(code, msg) ⇒ StatusCode
Returns a new instance of StatusCode.
13 14 15 16 |
# File 'lib/tarantool/exceptions.rb', line 13 def initialize(code, msg) super(msg) @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
12 13 14 |
# File 'lib/tarantool/exceptions.rb', line 12 def code @code end |
Instance Method Details
#to_s ⇒ Object
17 18 19 |
# File 'lib/tarantool/exceptions.rb', line 17 def to_s "#{super} [#{code}]" end |