Exception: APIVerve::Textlanguage::ValidationError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/apiverve/client.rb,
lib/apiverve_textlanguage/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.



178
179
180
181
# File 'lib/apiverve/client.rb', line 178

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

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



176
177
178
# File 'lib/apiverve/client.rb', line 176

def errors
  @errors
end