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.



18
19
20
21
# File 'lib/rest_framework/errors.rb', line 18

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

Instance Method Details

#messageObject



23
24
25
# File 'lib/rest_framework/errors.rb', line 23

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