Exception: JsonAPIObjectMapper::InvalidResource

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jsonapi-object-mapper/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ InvalidResource

Returns a new instance of InvalidResource.



5
6
7
8
# File 'lib/jsonapi-object-mapper/exceptions.rb', line 5

def initialize(msg = nil)
  msg ||= "The deserializer class must be an inherited `JsonAPIObjectMapper::Deserialize::Resource` klass"
  super
end