Exception: Controlist::PermissionForbidden
- Inherits:
-
ControlistError
- Object
- StandardError
- ControlistError
- Controlist::PermissionForbidden
- Defined in:
- lib/controlist/errors.rb
Instance Attribute Summary collapse
-
#permission ⇒ Object
readonly
Returns the value of attribute permission.
Instance Method Summary collapse
-
#initialize(message, permission = nil) ⇒ PermissionForbidden
constructor
A new instance of PermissionForbidden.
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(, = nil) @permission = super() end |
Instance Attribute Details
#permission ⇒ Object (readonly)
Returns the value of attribute permission.
10 11 12 |
# File 'lib/controlist/errors.rb', line 10 def @permission end |