Exception: Syntropy::ValidationError
- Defined in:
- lib/syntropy/errors.rb
Overview
ValidationError is raised when a validation has failed.
Constant Summary
Constants inherited from Error
Error::DEFAULT_STATUS, Error::Status
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.
70 71 72 |
# File 'lib/syntropy/errors.rb', line 70 def initialize(msg) super(msg, Status::BAD_REQUEST) end |