Exception: APIVerve::Imagetotext::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/apiverve/client.rb,
lib/apiverve_imagetotext/client.rb

Overview

Custom error class for validation errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(errors) ⇒ ValidationError

Returns a new instance of ValidationError.



232
233
234
235
# File 'lib/apiverve/client.rb', line 232

def initialize(errors)
  @errors = errors
  super("Validation failed: #{errors.join(' ')}")
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



230
231
232
# File 'lib/apiverve/client.rb', line 230

def errors
  @errors
end