com.atlassian.bamboo.logger
Interface ErrorHandler

All Superinterfaces:
ErrorUpdateHandler
All Known Implementing Classes:
DefaultErrorHandler

@ThreadSafe
public interface ErrorHandler
extends ErrorUpdateHandler

Describes an abstraction for dealing with errors that occure while building builds.


Method Summary
 void clear()
          Remove all errors from the handler
 java.util.Collection<ErrorDetails> getAllErrors()
          Get all the errors recorded against all builds
 java.util.Collection<ErrorDetails> getElasticErrors()
          Get all the errors recorded against elastic bamboo
 ErrorDetails getErrorDetails(java.lang.String buildKey, int errorNumber)
          Obtain the specifed error from the handler.
 java.util.Collection getErrors(java.lang.String buildKey)
          Obtain all the errors recorded against a specific build
 void removeBuildErrors(java.lang.String buildKey)
          Remove all the errors for a given build
 void removeError(java.lang.String buildKey, int errorIndex)
          Remove a specific error from the handler.
 
Methods inherited from interface com.atlassian.bamboo.logger.ErrorUpdateHandler
addErrorCollection, createElasticError, createError, recordElasticError, recordError, recordError, recordError, recordError, recordError
 

Method Detail

getErrors

java.util.Collection getErrors(java.lang.String buildKey)
Obtain all the errors recorded against a specific build

Parameters:
buildKey - The build
Returns:
The collection ErrorDetails

getAllErrors

java.util.Collection<ErrorDetails> getAllErrors()
Get all the errors recorded against all builds

Returns:
The collection ErrorDetails

getElasticErrors

java.util.Collection<ErrorDetails> getElasticErrors()
Get all the errors recorded against elastic bamboo

Returns:
The collection ErrorDetails

clear

void clear()
Remove all errors from the handler


removeError

void removeError(java.lang.String buildKey,
                 int errorIndex)
Remove a specific error from the handler.

Parameters:
buildKey - The build containing the error
errorIndex - The errorIndex'th error to be associated with the build

getErrorDetails

ErrorDetails getErrorDetails(java.lang.String buildKey,
                             int errorNumber)
Obtain the specifed error from the handler.

Parameters:
buildKey - The build containing the error.
errorNumber - The errorIndex'th error to be associated with the build
Returns:
The error details

removeBuildErrors

void removeBuildErrors(java.lang.String buildKey)
Remove all the errors for a given build

Parameters:
buildKey - The key of the build


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.