Exception: Controlist::PermissionForbidden

Inherits:
ControlistError show all
Defined in:
lib/controlist/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, permission = nil) ⇒ PermissionForbidden

Returns a new instance of PermissionForbidden.



12
13
14
15
# File 'lib/controlist/errors.rb', line 12

def initialize(message, permission = nil)
  @permission = permission
  super(message)
end

Instance Attribute Details

#permissionObject (readonly)

Returns the value of attribute permission.



10
11
12
# File 'lib/controlist/errors.rb', line 10

def permission
  @permission
end