Exception: Served::Serializers::SerializationError

Inherits:
Error show all
Defined in:
lib/served/serializers/serialization_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(original_exception) ⇒ SerializationError

Returns a new instance of SerializationError.



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

def initialize(original_exception)
  super("Failed to serialize object with error: '#{original_exception.message}'")
end