Exception: Apruve::ValidationError
- Inherits:
-
StandardError
- Object
- StandardError
- Error
- StandardError
- Apruve::ValidationError
- Defined in:
- lib/apruve/resources/validation_error.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
Returns the value of attribute errors.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationError
constructor
A new instance of ValidationError.
- #message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(errors) ⇒ ValidationError
Returns a new instance of ValidationError.
4 5 6 |
# File 'lib/apruve/resources/validation_error.rb', line 4 def initialize(errors) @errors = errors end |
Instance Attribute Details
#errors ⇒ Object
Returns the value of attribute errors.
3 4 5 |
# File 'lib/apruve/resources/validation_error.rb', line 3 def errors @errors end |
Instance Method Details
#message ⇒ Object
8 9 10 |
# File 'lib/apruve/resources/validation_error.rb', line 8 def @errors.to_s end |