Exception: Goliath::Validation::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Goliath::Validation::Error
- Defined in:
- lib/goliath/rack/validation_error.rb
Overview
A information about exceptions raised during validation.
Instance Attribute Summary (collapse)
-
- (Object) status_code
The status code to return from the error handler.
Instance Method Summary (collapse)
-
- (Goliath::Validation::Error) initialize(status_code, message)
constructor
Create a new Goliath::Validation::Error.
Constructor Details
- (Goliath::Validation::Error) initialize(status_code, message)
Create a new Goliath::Validation::Error.
16 17 18 19 |
# File 'lib/goliath/rack/validation_error.rb', line 16 def initialize(status_code, ) super() @status_code = status_code end |
Instance Attribute Details
- (Object) status_code
The status code to return from the error handler
6 7 8 |
# File 'lib/goliath/rack/validation_error.rb', line 6 def status_code @status_code end |