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
  • Constructor Details

  • Method Details

    • tryRecordException

      public Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto> tryRecordException​(Throwable exception, String callOrigin)
      Specified by:
      tryRecordException in interface io.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:
      tryRecordException in interface io.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:
      tryRecordException in interface io.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:
      recordException in interface io.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:
      recordException in interface io.datarouter.web.exception.ExceptionRecorder
    • tryRecordExceptionAndHttpRequest

      public Optional<io.datarouter.instrumentation.exception.ExceptionRecordDto> tryRecordExceptionAndHttpRequest​(Throwable exception, String callOrigin, javax.servlet.http.HttpServletRequest request)
      Specified by:
      tryRecordExceptionAndHttpRequest in interface io.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:
      recordExceptionAndHttpRequest in interface io.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:
      recordHttpRequest in interface io.datarouter.web.exception.ExceptionRecorder