Exception: APIVerve::Timezonelookup::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- APIVerve::Timezonelookup::ValidationError
- Defined in:
- lib/apiverve/client.rb,
lib/apiverve_timezonelookup/client.rb
Overview
Custom error class for validation errors
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
176 177 178 |
# File 'lib/apiverve/client.rb', line 176 def errors @errors end |