Exception: ActiveEntry::AuthError

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

Direct Known Subclasses

NotAuthenticatedError, NotAuthorizedError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error, method, arguments) ⇒ AuthError

Returns a new instance of AuthError.



8
9
10
11
12
13
14
15
# File 'lib/active_entry/errors.rb', line 8

def initialize error, method, arguments
  @error = error
  @method = method 
  @arguments = arguments
  @message = "Not authenticated/authorized for method ##{@method}"

  super @message
end

Instance Attribute Details

#argumentsObject (readonly)

Returns the value of attribute arguments.



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

def arguments
  @arguments
end

#errorObject (readonly)

Returns the value of attribute error.



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

def error
  @error
end

#methodObject (readonly)

Returns the value of attribute method.



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

def method
  @method
end