Exception: Parse::CLPScope::Denied
- Inherits:
-
StandardError
- Object
- StandardError
- Parse::CLPScope::Denied
- Defined in:
- lib/parse/clp_scope.rb
Instance Attribute Summary collapse
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#operation ⇒ Object
readonly
Returns the value of attribute operation.
Instance Method Summary collapse
-
#initialize(class_name, operation, reason = nil) ⇒ Denied
constructor
A new instance of Denied.
Constructor Details
#initialize(class_name, operation, reason = nil) ⇒ Denied
Returns a new instance of Denied.
12 13 14 15 16 |
# File 'lib/parse/clp_scope.rb', line 12 def initialize(class_name, operation, reason = nil) @class_name = class_name @operation = operation super(reason || "CLP denied: #{operation} on #{class_name}") end |
Instance Attribute Details
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
10 11 12 |
# File 'lib/parse/clp_scope.rb', line 10 def class_name @class_name end |
#operation ⇒ Object (readonly)
Returns the value of attribute operation.
10 11 12 |
# File 'lib/parse/clp_scope.rb', line 10 def operation @operation end |