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(PlanKey planKey, java.lang.String context)
           
 void recordError(PlanKey planKey, java.lang.String context, java.lang.Throwable throwable)
           
 void recordError(PlanResultKey planResultKey, java.lang.String context, java.lang.Throwable throwable)
          Record a build error against a build result
 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,
                 @Nullable
                 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(@NotNull
                 PlanResultKey planResultKey,
                 @Nullable
                 java.lang.String context,
                 @Nullable
                 java.lang.Throwable throwable)
Record a build error against a build result

Parameters:
planResultKey -
context -
throwable -

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(@NotNull
                 PlanKey planKey,
                 @Nullable
                 java.lang.String context,
                 @NotNull
                 java.lang.Throwable 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(@NotNull
                 PlanKey planKey,
                 @Nullable
                 java.lang.String 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,
                 @Nullable
                 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 © 2011 Atlassian. All Rights Reserved.