Class Problem
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.belgif.rest.problem.api.Problem
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientProblem,DefaultProblem,ServerProblem
Abstract base class for problems (RFC 9457).
Maps to Problem in belgif/problem/v1/problem-v1.yaml.
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedprotectedprotectedprotected -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHref()Returns the problem message, consisting of the problem title, followed by the detail message (if present).intgetTitle()getType()inthashCode()voidsetAdditionalProperty(String name, Object value) voidvoidvoidsetInstance(URI instance) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Problem
-
Problem
-
Problem
-
Problem
-
-
Method Details
-
getStatus
public int getStatus() -
getType
-
getHref
-
setHref
-
getTitle
-
getDetail
-
setDetail
-
getInstance
-
setInstance
-
getAdditionalProperties
-
setAdditionalProperty
-
getMessage
Returns the problem message, consisting of the problem title, followed by the detail message (if present).- Overrides:
getMessagein classThrowable- Returns:
- the problem message
-
equals
-
hashCode
public int hashCode()
-