Exception: ApiRecipes::ProvidedObjectNotAsResponseData

Inherits:
Exception
  • Object
show all
Defined in:
lib/api_recipes/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(object_class, data_class) ⇒ ProvidedObjectNotAsResponseData

Returns a new instance of ProvidedObjectNotAsResponseData.



36
37
38
39
# File 'lib/api_recipes/exceptions.rb', line 36

def initialize(object_class, data_class)
  message = "provided object #{object_class} is not compatible with response data that is of type #{data_class}"
  super(message)
end