Exception: LVS::JsonService::Error
- Inherits:
-
StandardError
- Object
- StandardError
- LVS::JsonService::Error
- Defined in:
- lib/lvs/json_service/base.rb
Direct Known Subclasses
BackendUnavailableError, NotFoundError, NotModified, TimeoutError
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.
214 215 216 217 218 219 220 221 222 |
# File 'lib/lvs/json_service/base.rb', line 214 def initialize(, code, service, args, response=nil) @message = @code = code @service = service @args = args @json_response = response super "#{}\n#{service} (#{args.inspect})" end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
212 213 214 |
# File 'lib/lvs/json_service/base.rb', line 212 def args @args end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
212 213 214 |
# File 'lib/lvs/json_service/base.rb', line 212 def code @code end |
#json_response ⇒ Object (readonly)
Returns the value of attribute json_response.
212 213 214 |
# File 'lib/lvs/json_service/base.rb', line 212 def json_response @json_response end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
212 213 214 |
# File 'lib/lvs/json_service/base.rb', line 212 def @message end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
212 213 214 |
# File 'lib/lvs/json_service/base.rb', line 212 def service @service end |