Class DefaultExceptionHandlingConfig

java.lang.Object
io.datarouter.exception.service.DefaultExceptionHandlingConfig
All Implemented Interfaces:
io.datarouter.web.exception.ExceptionHandlingConfig

public class DefaultExceptionHandlingConfig
extends Object
implements io.datarouter.web.exception.ExceptionHandlingConfig
  • Constructor Details

  • Method Details

    • shouldDisplayStackTrace

      public boolean shouldDisplayStackTrace​(javax.servlet.http.HttpServletRequest request, Throwable exception)
      Specified by:
      shouldDisplayStackTrace in interface io.datarouter.web.exception.ExceptionHandlingConfig
    • isInternalUser

      protected boolean isInternalUser​(javax.servlet.http.HttpServletRequest request)
    • shouldReportError

      public boolean shouldReportError​(io.datarouter.instrumentation.exception.ExceptionRecordDto exceptionRecord)
      Specified by:
      shouldReportError in interface io.datarouter.web.exception.ExceptionHandlingConfig
    • shouldReportError

      public boolean shouldReportError​(io.datarouter.web.monitoring.exception.ExceptionDto dto)
      Specified by:
      shouldReportError in interface io.datarouter.web.exception.ExceptionHandlingConfig
    • getHtmlErrorMessage

      public String getHtmlErrorMessage​(Exception exception)
      Specified by:
      getHtmlErrorMessage in interface io.datarouter.web.exception.ExceptionHandlingConfig
    • isDevServer

      public boolean isDevServer()
      Specified by:
      isDevServer in interface io.datarouter.web.exception.ExceptionHandlingConfig
    • buildExceptionLinkForCurrentServer

      public String buildExceptionLinkForCurrentServer​(String exceptionRecordId)
      Specified by:
      buildExceptionLinkForCurrentServer in interface io.datarouter.web.exception.ExceptionHandlingConfig