Interface MessageHandlerErrorCollector

All Known Subinterfaces:
MessageHandlerExecutionMonitor

@PublicApi public interface MessageHandlerErrorCollector
Message handlers should report here what they are doing. Depending on the context in which handlers are run (either normal production run as from a scheduled service or in a test mode - a dry run - from UI) this information can be transparently routed to appropriate place. Consider passing here translated strings (i18n), do not pass i18n keys.
Since:
v5.0
  • Method Details

    • error

      void error(String error, @Nullable Throwable e)
      Report an error.
      Parameters:
      error - a serious problem which usually makes further handling of given message pointless
      e - associated throwable or null
    • error

      void error(String error)
      Report an error.
      Parameters:
      error - a serious problem which usually makes further handling of given message pointless
    • warning

      void warning(String warning)
      Report a warning
      Parameters:
      warning - a warning, but nothing critical for the handler
    • warning

      void warning(String warning, @Nullable Throwable e)
      Report a warning
      Parameters:
      warning - a warning, but nothing critical for the handler
      e - associated throwable or null
    • info

      void info(String info)
      Report valuable information for JIRA admin
      Parameters:
      info - information message (something expected, OK, normal)
    • info

      void info(String info, @Nullable Throwable e)
      Report valuable information for JIRA admin
      Parameters:
      info - information message (something expected, OK, normal)
      e - associated throwable or null