Exception: JobDispatch::Client::ProxyError
- Inherits:
-
StandardError
- Object
- StandardError
- JobDispatch::Client::ProxyError
- Defined in:
- lib/job_dispatch/client/proxy_error.rb
Overview
When a proxy result is a failure, this exception is a class that will encapsulate the result.
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(message, response = nil) ⇒ ProxyError
constructor
A new instance of ProxyError.
Constructor Details
#initialize(message, response = nil) ⇒ ProxyError
Returns a new instance of ProxyError.
12 13 14 15 |
# File 'lib/job_dispatch/client/proxy_error.rb', line 12 def initialize(, response=nil) @response = response super() end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
10 11 12 |
# File 'lib/job_dispatch/client/proxy_error.rb', line 10 def response @response end |