Exception: ABBYY::Cloud::TypeError

Inherits:
TypeError
  • Object
show all
Defined in:
lib/abbyy/cloud/exceptions/type_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(link, data, details) ⇒ TypeError

Returns a new instance of TypeError.



5
6
7
8
9
10
11
12
# File 'lib/abbyy/cloud/exceptions/type_error.rb', line 5

def initialize(link, data, details)
  super <<-MESSAGE.gsub(/ +\|/, "")
    |The data returned by ABBYY Cloud API mismatch its specification
    |  returned data: #{data}
    |  specification: #{link}
    |  details:       #{details}
  MESSAGE
end