Package yakworks.problem.exception
Interface Exceptional
-
public interface ExceptionalAn extension of theIProbleminterface for problems that extendException. SinceExceptionis a concrete type any class can only extend one exception type.ProblemRuntimeis 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 asProblemRuntimefor free. A common use case would be:public final class OutOfStockException extends BusinessException implements Exceptional- See Also:
Exception,IProblem,ProblemRuntime
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default java.lang.Exceptionpropagate()default <X extends java.lang.Throwable>
XpropagateAs(java.lang.Class<X> type)
-