Package io.datarouter.exception.service
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
-
Constructor Summary
Constructors Constructor Description DefaultExceptionHandlingConfig() -
Method Summary
Modifier and Type Method Description java.lang.StringbuildExceptionLinkForCurrentServer(java.lang.String exceptionRecordId)java.lang.StringgetHtmlErrorMessage(java.lang.Exception exception)booleanisDevServer()protected booleanisInternalUser(javax.servlet.http.HttpServletRequest request)booleanshouldDisplayStackTrace(javax.servlet.http.HttpServletRequest request, java.lang.Exception exception)booleanshouldReportError(io.datarouter.instrumentation.exception.ExceptionRecordDto exceptionRecord)booleanshouldReportError(io.datarouter.web.monitoring.exception.ExceptionDto dto)
-
Constructor Details
-
DefaultExceptionHandlingConfig
public DefaultExceptionHandlingConfig()
-
-
Method Details
-
shouldDisplayStackTrace
public boolean shouldDisplayStackTrace(javax.servlet.http.HttpServletRequest request, java.lang.Exception exception)- Specified by:
shouldDisplayStackTracein interfaceio.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:
shouldReportErrorin interfaceio.datarouter.web.exception.ExceptionHandlingConfig
-
shouldReportError
public boolean shouldReportError(io.datarouter.web.monitoring.exception.ExceptionDto dto)- Specified by:
shouldReportErrorin interfaceio.datarouter.web.exception.ExceptionHandlingConfig
-
getHtmlErrorMessage
public java.lang.String getHtmlErrorMessage(java.lang.Exception exception)- Specified by:
getHtmlErrorMessagein interfaceio.datarouter.web.exception.ExceptionHandlingConfig
-
isDevServer
public boolean isDevServer()- Specified by:
isDevServerin interfaceio.datarouter.web.exception.ExceptionHandlingConfig
-
buildExceptionLinkForCurrentServer
public java.lang.String buildExceptionLinkForCurrentServer(java.lang.String exceptionRecordId)- Specified by:
buildExceptionLinkForCurrentServerin interfaceio.datarouter.web.exception.ExceptionHandlingConfig
-