|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ErrorHandler
Describes an abstraction for dealing with errors that occure while building builds.
Method Summary | |
---|---|
void |
addErrorCollection(String buildName,
ErrorCollection errors)
Adds all the error messages in the errorCollection to the build |
void |
clear()
Remove all errors from the handler |
Collection |
getAllErrors()
Get all the errors recorded against all builds |
ErrorDetails |
getErrorDetails(String buildName,
int errorNumber)
Obtain the specifed error from the handler. |
Collection |
getErrors(String buildName)
Obtain all the errors recorded against a specific build |
void |
recordError(String buildName,
String context)
|
void |
recordError(String buildName,
String context,
Throwable throwable)
Record a build error against a build |
void |
removeBuildErrors(String buildName)
Remove all the errors for a given build |
void |
removeError(String buildName,
int errorIndex)
Remove a specific error from the handler. |
void |
suspendTroublesomeBuild(Build build)
Sespends a build if it's reached a maximum theshold of errors |
Method Detail |
---|
void recordError(String buildName, String context, Throwable throwable)
buildName
- The buildcontext
- throwable
- The errorCollection getErrors(String buildName)
buildName
- The build
ErrorDetails
Collection getAllErrors()
ErrorDetails
void clear()
void removeError(String buildName, int errorIndex)
buildName
- The build containing the errorerrorIndex
- The errorIndex'th error to be associated with the buildErrorDetails getErrorDetails(String buildName, int errorNumber)
buildName
- The build containing the error.errorNumber
- The errorIndex'th error to be associated with the build
void removeBuildErrors(String buildName)
buildName
- The name of the buildvoid addErrorCollection(String buildName, ErrorCollection errors)
buildName
- errors
- void recordError(String buildName, String context)
void suspendTroublesomeBuild(Build build)
build
- - must not be null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |