Exception: AuthorizeIf::NotAuthorizedError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNotAuthorizedError

Returns a new instance of NotAuthorizedError.



5
6
7
8
9
10
# File 'lib/authorize_if/errors.rb', line 5

def initialize(*)
  @message = nil
  @context = {}

  super
end

Instance Attribute Details

#contextObject (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 message=(msg)
  @message = msg
end