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 theProblem
interface for problems that extendException
. SinceException
is a concrete type any class can only extend one exception type.ThrowableProblem
is 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 asThrowableProblem
for 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 Exceptional
getCause()
default Exception
propagate()
default <X extends Throwable>
XpropagateAs(Class<X> type)
-
Methods inherited from interface org.zalando.problem.Problem
getDetail, getInstance, getParameters, getStatus, getTitle, getType
-
-