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, RequestMismatchError, TimeoutError
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#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 = nil, service = nil, args = nil, response = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message, code = nil, service = nil, args = nil, response = nil) ⇒ Error
Returns a new instance of Error.
284 285 286 287 288 289 290 291 292 293 |
# File 'lib/lvs/json_service/base.rb', line 284 def initialize(, code=nil, service=nil, args=nil, response=nil) @message = @code = code @service = service @args = args @json_response = response @backtrace = caller super "#{}\n#{service} (#{args.inspect})" end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
282 283 284 |
# File 'lib/lvs/json_service/base.rb', line 282 def args @args end |
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
282 283 284 |
# File 'lib/lvs/json_service/base.rb', line 282 def backtrace @backtrace end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
282 283 284 |
# File 'lib/lvs/json_service/base.rb', line 282 def code @code end |
#json_response ⇒ Object (readonly)
Returns the value of attribute json_response.
282 283 284 |
# File 'lib/lvs/json_service/base.rb', line 282 def json_response @json_response end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
282 283 284 |
# File 'lib/lvs/json_service/base.rb', line 282 def @message end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
282 283 284 |
# File 'lib/lvs/json_service/base.rb', line 282 def service @service end |