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