Exception: RESTFramework::UnserializableError
- Defined in:
- lib/rest_framework/errors.rb
Instance Method Summary collapse
-
#initialize(object) ⇒ UnserializableError
constructor
A new instance of UnserializableError.
- #message ⇒ Object
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
#message ⇒ Object
23 24 25 |
# File 'lib/rest_framework/errors.rb', line 23 def return "Unable to serialize `#{@object.inspect}` (of type `#{@object.class}`)." end |