Package com.atlassian.bamboo.logger
Interface ErrorHandler
- All Superinterfaces:
ErrorAccessor,ErrorUpdateHandler
- All Known Implementing Classes:
DefaultErrorHandler
Describes an abstraction for dealing with errors that occur while building builds.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Remove all errors from the handlergetErrorDetails(String buildKey, int errorNumber) Obtain the specified error from the handler.voidremoveBuildErrors(String buildKey) Remove all the errors for a given buildvoidremoveError(String buildKey, int errorIndex) Remove a specific error from the handler.Methods inherited from interface com.atlassian.bamboo.logger.ErrorAccessor
getAllErrors, getElasticErrors, getErrors, getErrors, getErrorsByAgentIdMethods inherited from interface com.atlassian.bamboo.logger.ErrorUpdateHandler
addErrorCollection, createElasticError, createError, createError, recordElasticError, recordError, recordError, recordError, recordError, recordError, recordError, recordError
-
Method Details
-
clear
void clear()Remove all errors from the handler -
removeError
Remove a specific error from the handler.- Parameters:
buildKey- The build containing the errorerrorIndex- The errorIndex'th error to be associated with the build
-
removeBuildErrors
Remove all the errors for a given build- Parameters:
buildKey- The key of the build
-
getErrorDetails
Obtain the specified 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
-