Exception: ViewModel::SerializationError

Inherits:
AbstractError
  • Object
show all
Defined in:
lib/view_model/serialization_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from AbstractError

#aggregation?, #causes, #code, #exception, #meta, #status, #title, #to_s, #view

Constructor Details

#initialize(detail) ⇒ SerializationError

Returns a new instance of SerializationError.



9
10
11
12
# File 'lib/view_model/serialization_error.rb', line 9

def initialize(detail)
  @detail = detail
  super()
end

Instance Attribute Details

#detailObject (readonly)

Returns the value of attribute detail.



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

def detail
  @detail
end