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, 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