Package io.datarouter.exception.service
Class DefaultExceptionRecorder
java.lang.Object
io.datarouter.exception.service.DefaultExceptionRecorder
- All Implemented Interfaces:
io.datarouter.web.exception.ExceptionRecorder
public class DefaultExceptionRecorder extends Object implements io.datarouter.web.exception.ExceptionRecorder
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description DefaultExceptionRecorder() -
Method Summary
Modifier and Type Method Description io.datarouter.instrumentation.exception.ExceptionRecordDtorecordException(Throwable exception, io.datarouter.storage.exception.ExceptionCategory category, String location, String methodName, String type, Integer lineNumber, String callOrigin)io.datarouter.instrumentation.exception.ExceptionRecordDtorecordException(Throwable exception, io.datarouter.storage.exception.ExceptionCategory category, String location, String methodName, String type, Integer lineNumber, String callOrigin, List<String> additionalEmailRecipients)io.datarouter.instrumentation.exception.ExceptionRecordDtorecordExceptionAndHttpRequest(Throwable exception, String location, String methodName, String type, Integer lineNumber, javax.servlet.http.HttpServletRequest request, String callOrigin)voidrecordHttpRequest(javax.servlet.http.HttpServletRequest request)protected voidreport(ExceptionRecord exceptionRecord, io.datarouter.storage.exception.ExceptionCategory category, List<String> additionalEmailRecipients)Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto>tryRecordException(Throwable exception, String callOrigin)Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto>tryRecordException(Throwable exception, String callOrigin, io.datarouter.storage.exception.ExceptionCategory category)Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto>tryRecordException(Throwable exception, String callOrigin, io.datarouter.storage.exception.ExceptionCategory category, List<String> additionalEmailRecipients)Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto>tryRecordExceptionAndHttpRequest(Throwable exception, String callOrigin, javax.servlet.http.HttpServletRequest request)
-
Constructor Details
-
DefaultExceptionRecorder
public DefaultExceptionRecorder()
-
-
Method Details
-
tryRecordException
public Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto> tryRecordException(Throwable exception, String callOrigin)- Specified by:
tryRecordExceptionin interfaceio.datarouter.web.exception.ExceptionRecorder
-
tryRecordException
public Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto> tryRecordException(Throwable exception, String callOrigin, io.datarouter.storage.exception.ExceptionCategory category)- Specified by:
tryRecordExceptionin interfaceio.datarouter.web.exception.ExceptionRecorder
-
tryRecordException
public Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto> tryRecordException(Throwable exception, String callOrigin, io.datarouter.storage.exception.ExceptionCategory category, List<String> additionalEmailRecipients)- Specified by:
tryRecordExceptionin interfaceio.datarouter.web.exception.ExceptionRecorder
-
recordException
public io.datarouter.instrumentation.exception.ExceptionRecordDto recordException(Throwable exception, io.datarouter.storage.exception.ExceptionCategory category, String location, String methodName, String type, Integer lineNumber, String callOrigin)- Specified by:
recordExceptionin interfaceio.datarouter.web.exception.ExceptionRecorder
-
recordException
public io.datarouter.instrumentation.exception.ExceptionRecordDto recordException(Throwable exception, io.datarouter.storage.exception.ExceptionCategory category, String location, String methodName, String type, Integer lineNumber, String callOrigin, List<String> additionalEmailRecipients)- Specified by:
recordExceptionin interfaceio.datarouter.web.exception.ExceptionRecorder
-
tryRecordExceptionAndHttpRequest
public Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto> tryRecordExceptionAndHttpRequest(Throwable exception, String callOrigin, javax.servlet.http.HttpServletRequest request)- Specified by:
tryRecordExceptionAndHttpRequestin interfaceio.datarouter.web.exception.ExceptionRecorder
-
recordExceptionAndHttpRequest
public io.datarouter.instrumentation.exception.ExceptionRecordDto recordExceptionAndHttpRequest(Throwable exception, String location, String methodName, String type, Integer lineNumber, javax.servlet.http.HttpServletRequest request, String callOrigin)- Specified by:
recordExceptionAndHttpRequestin interfaceio.datarouter.web.exception.ExceptionRecorder
-
report
protected void report(ExceptionRecord exceptionRecord, io.datarouter.storage.exception.ExceptionCategory category, List<String> additionalEmailRecipients) -
recordHttpRequest
public void recordHttpRequest(javax.servlet.http.HttpServletRequest request)- Specified by:
recordHttpRequestin interfaceio.datarouter.web.exception.ExceptionRecorder
-