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, method_not_allowed, not_found, teapot
Constructor Details
#initialize(msg) ⇒ ValidationError
Returns a new instance of ValidationError.
58 59 60 |
# File 'lib/syntropy/errors.rb', line 58 def initialize(msg) super(Qeweney::Status::BAD_REQUEST, msg) end |