Exception: CardDB::ValidationError
- Defined in:
- lib/carddb/errors.rb
Overview
Raised when request validation fails
Instance Attribute Summary collapse
-
#errors ⇒ Array<Hash>
readonly
List of validation errors.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, errors: [], response: nil) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message = nil, errors: [], response: nil) ⇒ ValidationError
Returns a new instance of ValidationError.
49 50 51 52 |
# File 'lib/carddb/errors.rb', line 49 def initialize( = nil, errors: [], response: nil) @errors = errors super(, response: response) end |
Instance Attribute Details
#errors ⇒ Array<Hash> (readonly)
Returns List of validation errors.
47 48 49 |
# File 'lib/carddb/errors.rb', line 47 def errors @errors end |