com.atlassian.jira.service.util.handler
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 Summary
 void error(String error)
          Report an error.
 void error(String error, Throwable e)
          Report an error.
 void info(String info)
          Report valuable information for JIRA admin
 void info(String info, Throwable e)
          Report valuable information for JIRA admin
 void warning(String warning)
          Report a warning
 void warning(String warning, Throwable e)
          Report a warning
 

Method Detail

error

void error(String error,
           @Nullable
           Throwable e)
Report an error.

Parameters:
error - a serious problem which usually makes further hanling 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 hanling 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


Copyright © 2002-2014 Atlassian. All Rights Reserved.