com.atlassian.bamboo.logger
Interface ErrorUpdateHandler

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

public interface ErrorUpdateHandler


Method Summary
 void addErrorCollection(ResultKey buildKey, ErrorCollection errors)
          Adds all the error messages in the errorCollection to the build
 void addErrorCollection(java.lang.String buildKey, ErrorCollection errors)
          Deprecated. since 5.0 use addErrorCollection(ResultKey, ErrorCollection)
 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)
          Deprecated. since 5.0 use recordError(ResultKey, String, Throwable) instead.
 void recordError(Key planKey, java.lang.String context)
           
 void recordError(Key planKey, java.lang.String context, java.lang.Throwable throwable)
           
 void recordError(ResultKey resultKey, java.lang.String context, java.lang.Throwable throwable)
          Record an error against a result
 void recordError(java.lang.String errorMessage)
           
 void recordError(java.lang.String buildKey, int buildNumber, java.lang.String context, java.lang.Throwable throwable)
          Deprecated. since 5.0. Use recordError(ResultKey, String, Throwable)
 void recordError(java.lang.String buildKey, java.lang.String context)
          Deprecated. since 5.0. Use recordError(Key, String)
 void recordError(java.lang.String buildKey, java.lang.String context, java.lang.Throwable throwable)
          Deprecated. since 5.0. Use #recordError(Key, String, Throwable
 

Method Detail

recordError

@Deprecated
void recordError(java.lang.String buildKey,
                            int buildNumber,
                            java.lang.String context,
                            @Nullable
                            java.lang.Throwable throwable)
Deprecated. since 5.0. Use recordError(ResultKey, String, 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(ResultKey resultKey,
                 @Nullable
                 java.lang.String context,
                 @Nullable
                 java.lang.Throwable throwable)
Record an error against a result

Parameters:
resultKey - of the result
context - message
throwable - error

recordError

@Deprecated
void recordError(java.lang.String buildKey,
                            java.lang.String context,
                            java.lang.Throwable throwable)
Deprecated. since 5.0. Use #recordError(Key, String, Throwable

Record a build error against a build

Parameters:
buildKey -
context -
throwable -

recordError

void recordError(@NotNull
                 Key planKey,
                 @Nullable
                 java.lang.String context,
                 @NotNull
                 java.lang.Throwable throwable)

recordError

@Deprecated
void recordError(java.lang.String buildKey,
                            java.lang.String context)
Deprecated. since 5.0. Use recordError(Key, String)

Record a build error against a build

Parameters:
buildKey -
context -

recordError

void recordError(@NotNull
                 Key planKey,
                 @Nullable
                 java.lang.String context)

recordError

@Deprecated
void recordError(@Nullable
                            BuildContext buildContext,
                            @NotNull
                            java.lang.String context,
                            @Nullable
                            java.lang.Throwable throwable)
Deprecated. since 5.0 use recordError(ResultKey, String, Throwable) instead.


addErrorCollection

@Deprecated
void addErrorCollection(java.lang.String buildKey,
                                   ErrorCollection errors)
Deprecated. since 5.0 use addErrorCollection(ResultKey, ErrorCollection)

Adds all the error messages in the errorCollection to the build

Parameters:
buildKey -
errors -

addErrorCollection

void addErrorCollection(ResultKey buildKey,
                        ErrorCollection errors)
Adds all the error messages in the errorCollection to the build

Parameters:
buildKey -
errors -

createError

void createError(@Nullable
                 java.lang.String planKey,
                 @Nullable
                 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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.