Exception: Sinatra::ParamValidator::ValidationFailedError
- Inherits:
-
StandardError
- Object
- StandardError
- Sinatra::ParamValidator::ValidationFailedError
- Defined in:
- lib/sinatra/param_validator/validation_failed_error.rb
Overview
Error raised when validation fails
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(errors) ⇒ ValidationFailedError
constructor
A new instance of ValidationFailedError.
Constructor Details
#initialize(errors) ⇒ ValidationFailedError
Returns a new instance of ValidationFailedError.
9 10 11 12 |
# File 'lib/sinatra/param_validator/validation_failed_error.rb', line 9 def initialize(errors) @errors = errors super("Validation failed: #{errors}") end |
Instance Attribute Details
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
7 8 9 |
# File 'lib/sinatra/param_validator/validation_failed_error.rb', line 7 def errors @errors end |