Class InputValidationProblem
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.belgif.rest.problem.api.Problem
io.github.belgif.rest.problem.api.ClientProblem
io.github.belgif.rest.problem.api.InputValidationProblem
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BadRequestProblem,MissingPermissionProblem,ResourceNotFoundProblem
Abstract base class for input validation problems.
Maps to InputValidationProblem in belgif/problem/v1/problem-v1.yaml.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInputValidationProblem(URI type, String title, int status) protectedInputValidationProblem(URI type, String title, int status, Throwable cause) protectedInputValidationProblem(URI type, URI href, String title, int status) protectedInputValidationProblem(URI type, URI href, String title, int status, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInvalidParam(InvalidParam invalidParam) Deprecated.voidaddIssue(InputValidationIssue issue) booleanDeprecated.usegetIssues()Returns the problem message, consisting of the problem title, followed by the detail message (if present).inthashCode()voidsetInvalidParams(InvalidParam... invalidParams) Deprecated.voidsetInvalidParams(List<InvalidParam> invalidParams) Deprecated.usesetIssues(List)voidsetIssues(InputValidationIssue... issues) voidsetIssues(List<InputValidationIssue> issues) Methods inherited from class io.github.belgif.rest.problem.api.Problem
getAdditionalProperties, getDetail, getHref, getInstance, getStatus, getTitle, getType, setAdditionalProperty, setDetail, setHref, setInstanceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InputValidationProblem
-
InputValidationProblem
-
InputValidationProblem
-
InputValidationProblem
-
-
Method Details
-
getIssues
-
setIssues
-
setIssues
-
addIssue
-
getInvalidParams
Deprecated.usegetIssues() -
setInvalidParams
Deprecated.usesetIssues(List) -
setInvalidParams
Deprecated. -
addInvalidParam
Deprecated. -
getMessage
Description copied from class:ProblemReturns the problem message, consisting of the problem title, followed by the detail message (if present).- Overrides:
getMessagein classProblem- Returns:
- the problem message
-
equals
-
hashCode
public int hashCode()
-
addIssue(InputValidationIssue)