Class DefaultHTTPUnexpectedExceptionHandler

java.lang.Object
io.fusionauth.http.server.DefaultHTTPUnexpectedExceptionHandler
All Implemented Interfaces:
HTTPUnexpectedExceptionHandler

public class DefaultHTTPUnexpectedExceptionHandler extends Object implements HTTPUnexpectedExceptionHandler
THe default HTTP unexpected exception handler.
Author:
Daniel DeGroff
  • Constructor Details

    • DefaultHTTPUnexpectedExceptionHandler

      public DefaultHTTPUnexpectedExceptionHandler()
  • Method Details

    • handle

      public void handle(ExceptionHandlerContext context)
      Description copied from interface: HTTPUnexpectedExceptionHandler
      This handler will be called when an unexpected exception is taken while processing an HTTP request by the HTTP worker.

      The intent is that this provides additional flexibility on the status code and the logging behavior when an unexpected exception caught.

      Specified by:
      handle in interface HTTPUnexpectedExceptionHandler
      Parameters:
      context - the exception context