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
ConstructorsModifierConstructorDescriptionprotected
InputValidationProblem
(URI type, String title, int status) protected
InputValidationProblem
(URI type, String title, int status, Throwable cause) protected
InputValidationProblem
(URI type, URI href, String title, int status) protected
InputValidationProblem
(URI type, URI href, String title, int status, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInvalidParam
(InvalidParam invalidParam) Deprecated.void
addIssue
(InputValidationIssue issue) boolean
Deprecated.usegetIssues()
Returns the problem message, consisting of the problem title, followed by the detail message (if present).int
hashCode()
void
setInvalidParams
(InvalidParam... invalidParams) Deprecated.void
setInvalidParams
(List<InvalidParam> invalidParams) Deprecated.usesetIssues(List)
void
setIssues
(InputValidationIssue... issues) void
setIssues
(List<InputValidationIssue> issues) Methods inherited from class io.github.belgif.rest.problem.api.Problem
getAdditionalProperties, getDetail, getHref, getInstance, getStatus, getTitle, getType, setAdditionalProperty, setDetail, setHref, setInstance
Methods 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:Problem
Returns the problem message, consisting of the problem title, followed by the detail message (if present).- Overrides:
getMessage
in classProblem
- Returns:
- the problem message
-
equals
-
hashCode
public int hashCode()
-
addIssue(InputValidationIssue)