Exception: RESTFramework::UnserializableError

Inherits:
Error
  • Object
show all
Defined in:
lib/rest_framework/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ UnserializableError

Returns a new instance of UnserializableError.



20
21
22
23
# File 'lib/rest_framework/errors.rb', line 20

def initialize(object)
  @object = object
  return super
end

Instance Method Details

#messageObject



25
26
27
# File 'lib/rest_framework/errors.rb', line 25

def message
  return "Unable to serialize `#{@object.inspect}` (of type `#{@object.class}`)."
end