com.atlassian.bamboo.logger
Interface ErrorUpdateHandler

All Known Subinterfaces:
ErrorHandler
All Known Implementing Classes:
AbstractErrorUpdateHandler, DefaultErrorHandler, RemoteErrorUpdateHandler

public interface ErrorUpdateHandler


Method Summary
 void addErrorCollection(java.lang.String buildKey, ErrorCollection errors)
          Adds all the error messages in the errorCollection to the build
 void createElasticError(java.lang.String context, java.lang.Long agentId, ThrowableDetails throwableDetails, java.lang.String instanceId)
          Create an error regarding Elastic Bamboo.
 void createError(java.lang.String planKey, java.lang.Integer buildNumber, java.lang.Long agentId, java.lang.String context, ThrowableDetails throwableDetails)
           
 void recordElasticError(java.lang.String context, java.lang.Long agentId, java.lang.Throwable throwable, java.lang.String instanceId)
          Record an error resulting from Elastic Bamboo
 void recordError(BuildContext buildContext, java.lang.String context, java.lang.Throwable throwable)
           
 void recordError(java.lang.String errorMessage)
           
 void recordError(java.lang.String buildKey, int buildNumber, java.lang.String context, java.lang.Throwable throwable)
          Record a build error against a build
 void recordError(java.lang.String buildKey, java.lang.String context)
          Record a build error against a build
 void recordError(java.lang.String buildKey, java.lang.String context, java.lang.Throwable throwable)
          Record a build error against a build
 

Method Detail

recordError

void recordError(java.lang.String buildKey,
                 int buildNumber,
                 java.lang.String context,
                 java.lang.Throwable throwable)
Record a build error against a build

Parameters:
buildKey - key of the build
buildNumber - number of the build - can be null
context - message
throwable - error

recordError

void recordError(java.lang.String buildKey,
                 java.lang.String context,
                 java.lang.Throwable throwable)
Record a build error against a build

Parameters:
buildKey -
context -
throwable -

recordError

void recordError(java.lang.String buildKey,
                 java.lang.String context)
Record a build error against a build

Parameters:
buildKey -
context -

recordError

void recordError(@Nullable
                 BuildContext buildContext,
                 @NotNull
                 java.lang.String context,
                 @Nullable
                 java.lang.Throwable throwable)

addErrorCollection

void addErrorCollection(java.lang.String buildKey,
                        ErrorCollection errors)
Adds all the error messages in the errorCollection to the build

Parameters:
buildKey -
errors -

createError

void createError(java.lang.String planKey,
                 java.lang.Integer buildNumber,
                 java.lang.Long agentId,
                 java.lang.String context,
                 ThrowableDetails throwableDetails)

createElasticError

void createElasticError(java.lang.String context,
                        @Nullable
                        java.lang.Long agentId,
                        @Nullable
                        ThrowableDetails throwableDetails,
                        @Nullable
                        java.lang.String instanceId)
Create an error regarding Elastic Bamboo.

Parameters:
context -
agentId -
throwableDetails -
instanceId -

recordElasticError

void recordElasticError(java.lang.String context,
                        @Nullable
                        java.lang.Long agentId,
                        @Nullable
                        java.lang.Throwable throwable,
                        @Nullable
                        java.lang.String instanceId)
Record an error resulting from Elastic Bamboo

Parameters:
context -
agentId -
throwable -
instanceId -

recordError

void recordError(java.lang.String errorMessage)


Copyright © 2010 Atlassian. All Rights Reserved.