Exception: ViewModel::AccessControlError

Inherits:
AbstractErrorWithBlame show all
Defined in:
lib/view_model/access_control_error.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractErrorWithBlame

#nodes

Instance Method Summary collapse

Methods inherited from AbstractErrorWithBlame

#meta

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

#detailObject (readonly)

Returns the value of attribute detail.



4
5
6
# File 'lib/view_model/access_control_error.rb', line 4

def detail
  @detail
end