Exception: Committee::InvalidRequest

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) ⇒ InvalidRequest

Returns a new instance of InvalidRequest.



13
14
15
16
# File 'lib/committee/errors.rb', line 13

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.



11
12
13
# File 'lib/committee/errors.rb', line 11

def original_error
  @original_error
end