Exception: ViewModel::AccessControlError
- Inherits:
-
AbstractErrorWithBlame
- Object
- StandardError
- AbstractError
- AbstractErrorWithBlame
- ViewModel::AccessControlError
- Defined in:
- lib/view_model/access_control_error.rb
Direct Known Subclasses
ViewModel::AccessControl::Composed::NoRequiredConditionsError
Instance Attribute Summary collapse
-
#detail ⇒ Object
readonly
Returns the value of attribute detail.
Attributes inherited from AbstractErrorWithBlame
Instance Method Summary collapse
-
#initialize(detail, nodes = []) ⇒ AccessControlError
constructor
A new instance of AccessControlError.
Methods inherited from AbstractErrorWithBlame
Methods inherited from AbstractError
#aggregation?, #causes, #code, #exception, #meta, #status, #title, #to_s, #view
Constructor Details
#initialize(detail, nodes = []) ⇒ AccessControlError
Returns a new instance of AccessControlError.
9 10 11 12 |
# File 'lib/view_model/access_control_error.rb', line 9 def initialize(detail, nodes = []) @detail = detail super(nodes) end |
Instance Attribute Details
#detail ⇒ Object (readonly)
Returns the value of attribute detail.
4 5 6 |
# File 'lib/view_model/access_control_error.rb', line 4 def detail @detail end |