|
||||||||||
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 |
ErrorDetails |
getErrorDetails(java.lang.String buildKey,
int errorNumber)
Obtain the specifed error from the handler. |
java.util.Collection<ErrorDetails> |
getErrors(java.lang.String buildKey)
Deprecated. since 3.0 Use type-safe ErrorAccessor API. |
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, recordError, recordError, recordError |
Methods inherited from interface com.atlassian.bamboo.logger.ErrorAccessor |
---|
getAllErrors, getElasticErrors, getErrors, getErrors |
Method Detail |
---|
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 buildvoid removeBuildErrors(java.lang.String buildKey)
buildKey
- The key of the build@Deprecated java.util.Collection<ErrorDetails> getErrors(java.lang.String buildKey)
buildKey
- The build
ErrorDetails
ErrorDetails getErrorDetails(java.lang.String buildKey, int errorNumber)
buildKey
- The build containing the error.errorNumber
- The errorIndex'th error to be associated with the build
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |