Class DefaultExceptionHandlingConfig

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

public class DefaultExceptionHandlingConfig
extends java.lang.Object
implements io.datarouter.web.exception.ExceptionHandlingConfig
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.datarouter.web.exception.ExceptionHandlingConfig

    io.datarouter.web.exception.ExceptionHandlingConfig.NoOpExceptionHandlingConfig
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultExceptionHandlingConfig()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String buildExceptionLinkForCurrentServer​(java.lang.String exceptionRecordId)  
    java.lang.String getHtmlErrorMessage​(java.lang.Exception exception)  
    boolean isDevServer()  
    protected boolean isInternalUser​(javax.servlet.http.HttpServletRequest request)  
    boolean shouldDisplayStackTrace​(javax.servlet.http.HttpServletRequest request, java.lang.Exception exception)  
    boolean shouldReportError​(io.datarouter.instrumentation.exception.ExceptionRecordDto exceptionRecord)  
    boolean shouldReportError​(io.datarouter.web.monitoring.exception.ExceptionDto dto)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • shouldDisplayStackTrace

      public boolean shouldDisplayStackTrace​(javax.servlet.http.HttpServletRequest request, java.lang.Exception 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 java.lang.String getHtmlErrorMessage​(java.lang.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 java.lang.String buildExceptionLinkForCurrentServer​(java.lang.String exceptionRecordId)
      Specified by:
      buildExceptionLinkForCurrentServer in interface io.datarouter.web.exception.ExceptionHandlingConfig