Exception: Syntropy::ValidationError
- Defined in:
- lib/syntropy/errors.rb
Overview
ValidationError is raised when a validation has failed.
Constant Summary
Constants inherited from Error
Instance Attribute Summary
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(msg) ⇒ ValidationError
constructor
A new instance of ValidationError.
Methods inherited from Error
http_status, log_error?, method_not_allowed, not_found, teapot
Constructor Details
#initialize(msg) ⇒ ValidationError
Returns a new instance of ValidationError.
68 69 70 |
# File 'lib/syntropy/errors.rb', line 68 def initialize(msg) super(msg, HTTP::BAD_REQUEST) end |