Exception: Committee::InvalidResponse

Inherits:
Error
  • Object
show all
Defined in:
lib/committee/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_message = nil, original_error: nil) ⇒ InvalidResponse

Returns a new instance of InvalidResponse.



22
23
24
25
# File 'lib/committee/errors.rb', line 22

def initialize(error_message=nil, original_error: nil)
  @original_error = original_error
  super(error_message)
end

Instance Attribute Details

#original_errorObject (readonly)

Returns the value of attribute original_error.



20
21
22
# File 'lib/committee/errors.rb', line 20

def original_error
  @original_error
end