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
-
#headers ⇒ Object
The headers to return from the error handler.
-
#status_code ⇒ Object
The status code to return from the error handler.
Instance Method Summary collapse
-
#initialize(status_code, message, headers = {}) ⇒ Goliath::Validation::Error
constructor
Create a new Goliath::Validation::Error.
Constructor Details
#initialize(status_code, message, headers = {}) ⇒ Goliath::Validation::Error
Create a new Goliath::Validation::Error.
18 19 20 21 22 |
# File 'lib/goliath/validation/error.rb', line 18 def initialize(status_code, , headers = {}) super() @status_code = status_code @headers = headers end |
Instance Attribute Details
#headers ⇒ Object
The headers to return from the error handler
8 9 10 |
# File 'lib/goliath/validation/error.rb', line 8 def headers @headers end |
#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 |