Exception: ApiNavigator::InvalidRepresentationError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/api_navigator/resource.rb

Overview

Exception that is raised when passing in invalid representation data for the resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_description, representation) ⇒ InvalidRepresentationError

Returns a new instance of InvalidRepresentationError.



10
11
12
13
# File 'lib/api_navigator/resource.rb', line 10

def initialize(error_description, representation)
  super(error_description)
  @representation = representation
end

Instance Attribute Details

#representationObject (readonly)



8
9
10
# File 'lib/api_navigator/resource.rb', line 8

def representation
  @representation
end