Exception: Resol::Service::Failure
- Inherits:
-
StandardError
- Object
- StandardError
- Resol::Service::Failure
- Defined in:
- lib/resol/service.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(code, data) ⇒ Failure
constructor
A new instance of Failure.
- #inspect ⇒ Object
- #message ⇒ Object
Constructor Details
#initialize(code, data) ⇒ Failure
Returns a new instance of Failure.
15 16 17 18 19 |
# File 'lib/resol/service.rb', line 15 def initialize(code, data) self.code = code self.data = data super(data) end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
13 14 15 |
# File 'lib/resol/service.rb', line 13 def code @code end |
#data ⇒ Object
Returns the value of attribute data.
13 14 15 |
# File 'lib/resol/service.rb', line 13 def data @data end |
Instance Method Details
#inspect ⇒ Object
21 22 23 |
# File 'lib/resol/service.rb', line 21 def inspect "#{self.class.name}: #{}" end |
#message ⇒ Object
25 26 27 |
# File 'lib/resol/service.rb', line 25 def data ? "#{code.inspect} => #{data.inspect}" : code.inspect end |