Exception: Alchemrest::MorpherTransformError

Inherits:
Error
  • Object
show all
Defined in:
lib/alchemrest/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#deconstruct, #deconstruct_keys

Constructor Details

#initialize(error) ⇒ MorpherTransformError

Returns a new instance of MorpherTransformError.



93
94
95
96
# File 'lib/alchemrest/error.rb', line 93

def initialize(error)
  @error = error
  super()
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



91
92
93
# File 'lib/alchemrest/error.rb', line 91

def error
  @error
end

Instance Method Details

#to_sObject



98
99
100
# File 'lib/alchemrest/error.rb', line 98

def to_s
  "Response does not match expected schema - #{error.compact_message}"
end