Exception: ActiveEntry::AuthError
- Defined in:
- lib/active_entry/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
Instance Method Summary collapse
-
#initialize(error, method, arguments) ⇒ AuthError
constructor
A new instance of AuthError.
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
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
6 7 8 |
# File 'lib/active_entry/errors.rb', line 6 def arguments @arguments end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
6 7 8 |
# File 'lib/active_entry/errors.rb', line 6 def error @error end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/active_entry/errors.rb', line 6 def method @method end |