Class RouterException

All Implemented Interfaces:
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:
  • Constructor Details

    • RouterException

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

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

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

    • shouldCloseChannel

      public boolean shouldCloseChannel()