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
ConstructorsModifierConstructorDescriptionprotected
protected
protected
protected
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getHref()
Returns the problem message, consisting of the problem title, followed by the detail message (if present).int
getTitle()
getType()
int
hashCode()
void
setAdditionalProperty
(String name, Object value) void
void
void
setInstance
(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:
getMessage
in classThrowable
- Returns:
- the problem message
-
equals
-
hashCode
public int hashCode()
-