Exception: BlueFactory::AuthorizationError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Authentication required", error_type = nil) ⇒ AuthorizationError

Returns a new instance of AuthorizationError.



5
6
7
8
# File 'lib/blue_factory/errors.rb', line 5

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

Instance Attribute Details

#error_typeObject (readonly)

Returns the value of attribute error_type.



3
4
5
# File 'lib/blue_factory/errors.rb', line 3

def error_type
  @error_type
end