Exception: JobDispatch::Client::ProxyError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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(message, response=nil)
  @response = response
  super(message)
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



10
11
12
# File 'lib/job_dispatch/client/proxy_error.rb', line 10

def response
  @response
end