class Athena::Framework::Exceptions::InvalidParameter
inherits Athena::Framework::Exceptions::UnprocessableEntity
#
Constructors#
.new(parameter : ATH::Params::ParamInterface, violations : AVD::Violation::ConstraintViolationListInterface, message : String, cause : Exception | Nil = nil, headers : HTTP::Headers = HTTP::Headers.new)
#
.with_violations(parameter : ATH::Params::ParamInterface, violations : AVD::Violation::ConstraintViolationListInterface) : self
#
Methods#
#to_json(builder : JSON::Builder) : Nil
#
Serializes self
to JSON in the format of {"code":400,"message":"Exception message"}