Class ExceptionDefaultHandler

  • All Implemented Interfaces:
    io.undertow.server.HttpHandler

    public class ExceptionDefaultHandler
    extends Object
    implements io.undertow.server.HttpHandler
    An HttpHandler which used for catching any exception thrown during request execution.
    • Constructor Detail

      • ExceptionDefaultHandler

        public ExceptionDefaultHandler()
    • Method Detail

      • handleRequest

        public void handleRequest​(io.undertow.server.HttpServerExchange exchange)
        Specified by:
        handleRequest in interface io.undertow.server.HttpHandler
      • sendErrorMessage

        public static void sendErrorMessage​(io.undertow.server.HttpServerExchange exchange,
                                            Throwable throwable)