Package org.zalando.problem
Class ThrowableProblem
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.zalando.problem.ThrowableProblem
-
- All Implemented Interfaces:
Serializable,Exceptional,Problem
- Direct Known Subclasses:
AbstractThrowableProblem
@API(status=STABLE) @Immutable public abstract class ThrowableProblem extends RuntimeException implements Problem, Exceptional
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.zalando.problem.Problem
DEFAULT_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedThrowableProblem()protectedThrowableProblem(ThrowableProblem cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThrowableProblemgetCause()StringgetMessage()StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.zalando.problem.Exceptional
propagate, propagateAs
-
Methods inherited from interface org.zalando.problem.Problem
getDetail, getInstance, getParameters, getStatus, getTitle, getType
-
-
-
-
Constructor Detail
-
ThrowableProblem
protected ThrowableProblem()
-
ThrowableProblem
protected ThrowableProblem(@Nullable ThrowableProblem cause)
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getCause
public ThrowableProblem getCause()
- Specified by:
getCausein interfaceExceptional- Overrides:
getCausein classThrowable
-
-