Exception: AuthorizeIf::NotAuthorizedError
- Inherits:
-
StandardError
- Object
- StandardError
- AuthorizeIf::NotAuthorizedError
- Defined in:
- lib/authorize_if/errors.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
Instance Method Summary collapse
-
#initialize ⇒ NotAuthorizedError
constructor
A new instance of NotAuthorizedError.
- #message=(msg) ⇒ Object
Constructor Details
#initialize ⇒ NotAuthorizedError
Returns a new instance of NotAuthorizedError.
5 6 7 8 9 10 |
# File 'lib/authorize_if/errors.rb', line 5 def initialize(*) = nil @context = {} super end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
3 4 5 |
# File 'lib/authorize_if/errors.rb', line 3 def context @context end |
Instance Method Details
#message=(msg) ⇒ Object
12 13 14 |
# File 'lib/authorize_if/errors.rb', line 12 def (msg) = msg end |