|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@ThreadSafe public interface ErrorHandler
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 |
---|
java.util.Collection getErrors(java.lang.String buildKey)
buildKey
- The build
ErrorDetails
java.util.Collection<ErrorDetails> getAllErrors()
ErrorDetails
java.util.Collection<ErrorDetails> getElasticErrors()
ErrorDetails
void clear()
void removeError(java.lang.String buildKey, int errorIndex)
buildKey
- The build containing the errorerrorIndex
- The errorIndex'th error to be associated with the buildErrorDetails getErrorDetails(java.lang.String buildKey, int errorNumber)
buildKey
- The build containing the error.errorNumber
- The errorIndex'th error to be associated with the build
void removeBuildErrors(java.lang.String buildKey)
buildKey
- The key of the build
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |