Exception: ValidateMyRoutes::Errors::ValidationError
- Defined in:
- lib/validate_my_routes/errors.rb
Overview
Basic error raised for validation failures
Direct Known Subclasses
ConditionalValidationError, ValidationRaisedAnExceptionError
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#status_code ⇒ Object
readonly
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(message, status_code) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(message, status_code) ⇒ ValidationError
Returns a new instance of ValidationError.
25 26 27 28 29 |
# File 'lib/validate_my_routes/errors.rb', line 25 def initialize(, status_code) super() @status_code = status_code @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
24 25 26 |
# File 'lib/validate_my_routes/errors.rb', line 24 def @message end |
#status_code ⇒ Object (readonly)
Returns the value of attribute status_code.
24 25 26 |
# File 'lib/validate_my_routes/errors.rb', line 24 def status_code @status_code end |