Exception: LVS::JsonService::Error
- Inherits:
-
StandardError
- Object
- StandardError
- LVS::JsonService::Error
- Defined in:
- lib/lvs/json_service/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#json_response ⇒ Object
readonly
Returns the value of attribute json_response.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
-
#initialize(message, code, service, args, response = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code, service, args, response = nil) ⇒ Error
Returns a new instance of Error.
200 201 202 203 204 205 206 207 208 |
# File 'lib/lvs/json_service/base.rb', line 200 def initialize(, code, service, args, response=nil) = @code = code @service = service @args = args @json_response = response super "#{message}\n#{service} (#{args.inspect})" end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
198 199 200 |
# File 'lib/lvs/json_service/base.rb', line 198 def args @args end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
198 199 200 |
# File 'lib/lvs/json_service/base.rb', line 198 def code @code end |
#json_response ⇒ Object (readonly)
Returns the value of attribute json_response.
198 199 200 |
# File 'lib/lvs/json_service/base.rb', line 198 def json_response @json_response end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
198 199 200 |
# File 'lib/lvs/json_service/base.rb', line 198 def end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
198 199 200 |
# File 'lib/lvs/json_service/base.rb', line 198 def service @service end |