Skip to content

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)#

View source

.with_violations(parameter : ATH::Params::ParamInterface, violations : AVD::Violation::ConstraintViolationListInterface) : self#

View source

Methods#

#parameter : ATH::Params::ParamInterface#

View source

#to_json(builder : JSON::Builder) : Nil#

Serializes self to JSON in the format of {"code":400,"message":"Exception message"}

View source

#violations : AVD::Violation::ConstraintViolationListInterface#

View source