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 Object implements io.datarouter.web.exception.ExceptionHandlingConfig
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description DefaultExceptionHandlingConfig() -
Method Summary
Modifier and Type Method Description StringbuildExceptionLinkForCurrentServer(String exceptionRecordId)StringgetHtmlErrorMessage(Exception exception)booleanisDevServer()protected booleanisInternalUser(javax.servlet.http.HttpServletRequest request)booleanshouldDisplayStackTrace(javax.servlet.http.HttpServletRequest request, Throwable 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, Throwable 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
- Specified by:
getHtmlErrorMessagein interfaceio.datarouter.web.exception.ExceptionHandlingConfig
-
isDevServer
public boolean isDevServer()- Specified by:
isDevServerin interfaceio.datarouter.web.exception.ExceptionHandlingConfig
-
buildExceptionLinkForCurrentServer
- Specified by:
buildExceptionLinkForCurrentServerin interfaceio.datarouter.web.exception.ExceptionHandlingConfig
-