Exception: Hyperclient::InvalidRepresentationError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/hyperclient/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.



9
10
11
12
# File 'lib/hyperclient/resource.rb', line 9

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

Instance Attribute Details

#representationObject (readonly)



7
8
9
# File 'lib/hyperclient/resource.rb', line 7

def representation
  @representation
end