Package org.zalando.problem
Interface Exceptional
-
- All Superinterfaces:
Problem
- All Known Implementing Classes:
AbstractThrowableProblem,DefaultProblem,ThrowableProblem
@API(status=STABLE) public interface Exceptional extends Problem
An extension of theProbleminterface for problems that extendException. SinceExceptionis a concrete type any class can only extend one exception type.ThrowableProblemis one choice, but we don't want to force people to extend from this but choose their own super class. For this they can implement this interface and get the same handling asThrowableProblemfor free. A common use case would be:public final class OutOfStockException extends BusinessException implements Exceptional- See Also:
Exception,Problem,ThrowableProblem
-
-
Field Summary
-
Fields inherited from interface org.zalando.problem.Problem
DEFAULT_TYPE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ExceptionalgetCause()default Exceptionpropagate()default <X extends Throwable>
XpropagateAs(Class<X> type)-
Methods inherited from interface org.zalando.problem.Problem
getDetail, getInstance, getParameters, getStatus, getTitle, getType
-
-