Exception: Spree::LogEntry::SerializationError

Inherits:
RuntimeError
  • Object
show all
Defined in:
app/models/spree/log_entry.rb

Direct Known Subclasses

BadAlias, DisallowedClass

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(psych_exception:) ⇒ SerializationError

Returns a new instance of SerializationError.



21
22
23
24
# File 'app/models/spree/log_entry.rb', line 21

def initialize(psych_exception:)
  @psych_exception = psych_exception
  super(default_message)
end

Instance Attribute Details

#psych_exceptionObject (readonly)

Returns the value of attribute psych_exception.



19
20
21
# File 'app/models/spree/log_entry.rb', line 19

def psych_exception
  @psych_exception
end