Exception: ValidateMyRoutes::Errors::ValidationRaisedAnExceptionError
- Inherits:
-
ValidationError
- Object
- RuntimeError
- Error
- ValidationError
- ValidateMyRoutes::Errors::ValidationRaisedAnExceptionError
- Defined in:
- lib/validate_my_routes/errors.rb
Overview
Raised when exceptions occurs in validation block
Instance Attribute Summary
Attributes inherited from ValidationError
Instance Method Summary collapse
-
#initialize(custom_exception, status_code) ⇒ ValidationRaisedAnExceptionError
constructor
A new instance of ValidationRaisedAnExceptionError.
Constructor Details
#initialize(custom_exception, status_code) ⇒ ValidationRaisedAnExceptionError
Returns a new instance of ValidationRaisedAnExceptionError.
37 38 39 |
# File 'lib/validate_my_routes/errors.rb', line 37 def initialize(custom_exception, status_code) super(custom_exception.to_s, status_code) end |