Class RouterException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    Netty4RouterException

    public class RouterException
    extends ExceptionWithStatus
    Exception class for checked exceptions within the Espresso Router. This extends Exception with the addition of a ResponseStatus for the error.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      RouterException​(java.lang.Class<STATUS> statusClass, STATUS status, int code, java.lang.String message, boolean closeChannel)  
      RouterException​(java.lang.Class<STATUS> statusClass, STATUS status, int code, java.lang.String message, boolean closeChannel, java.lang.Throwable cause)  
      RouterException​(java.lang.Class<STATUS> statusClass, STATUS status, int code, java.lang.String message, boolean closeChannel, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldCloseChannel()  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RouterException

        public RouterException​(@Nonnull
                               java.lang.Class<STATUS> statusClass,
                               @Nonnull
                               STATUS status,
                               int code,
                               @Nonnull
                               java.lang.String message,
                               boolean closeChannel)
      • RouterException

        public RouterException​(@Nonnull
                               java.lang.Class<STATUS> statusClass,
                               @Nonnull
                               STATUS status,
                               int code,
                               @Nonnull
                               java.lang.String message,
                               boolean closeChannel,
                               java.lang.Throwable cause)
      • RouterException

        public RouterException​(@Nonnull
                               java.lang.Class<STATUS> statusClass,
                               @Nonnull
                               STATUS status,
                               int code,
                               @Nonnull
                               java.lang.String message,
                               boolean closeChannel,
                               java.lang.Throwable cause,
                               boolean enableSuppression,
                               boolean writableStackTrace)
    • Method Detail

      • shouldCloseChannel

        public boolean shouldCloseChannel()