Exception: ApiNavigator::InvalidRepresentationError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ApiNavigator::InvalidRepresentationError
- 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
- #representation ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(error_description, representation) ⇒ InvalidRepresentationError
constructor
A new instance of InvalidRepresentationError.
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
#representation ⇒ Object (readonly)
8 9 10 |
# File 'lib/api_navigator/resource.rb', line 8 def representation @representation end |