Exception: BlueFactory::InvalidRequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/blue_factory/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, error_type = nil) ⇒ InvalidRequestError

Returns a new instance of InvalidRequestError.



17
18
19
20
# File 'lib/blue_factory/errors.rb', line 17

def initialize(message, error_type = nil)
  super(message)
  @error_type = error_type
end

Instance Attribute Details

#error_typeObject (readonly)

Returns the value of attribute error_type.



15
16
17
# File 'lib/blue_factory/errors.rb', line 15

def error_type
  @error_type
end