Exception: Syntropy::ValidationError

Inherits:
Error
  • Object
show all
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

#http_status

Instance Method Summary collapse

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