public class DefaultErrorHandler extends AbstractErrorUpdateHandler implements ErrorHandler
agentContext| Constructor and Description |
|---|
DefaultErrorHandler(AgentContext agentContext,
com.atlassian.event.api.EventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Remove all errors from the handler
|
void |
createElasticError(String context,
Long agentId,
ThrowableDetails throwableDetails,
String instanceId)
Create an error regarding Elastic Bamboo.
|
void |
createError(String entityKey,
Integer resultNumber,
Long agentId,
String context,
ThrowableDetails throwableDetails) |
void |
createError(String entityKey,
Long resultNumber,
Long agentId,
String context,
ThrowableDetails throwableDetails) |
Collection<ErrorDetails> |
getAllErrors()
Get all the errors recorded against all builds
|
Collection<ErrorDetails> |
getElasticErrors()
Get all the errors recorded against elastic bamboo
|
ErrorDetails |
getErrorDetails(String buildKey,
int errorNumber)
Obtain the specified error from the handler.
|
Collection<ErrorDetails> |
getErrors(Key planKey)
Obtain all the errors recorded against a specific plan
|
Collection<ErrorDetails> |
getErrors(ResultKey resultKey)
Obtain all the errors recorded against a specific result
|
Collection<ErrorDetails> |
getErrorsByAgentId(Long agentId)
Obtain all the errors recorded filtered by Agent Id
|
void |
removeBuildErrors(String buildKey)
Remove all the errors for a given build
|
void |
removeError(String buildKey,
int errorNumber)
Remove a specific error from the handler.
|
addErrorCollection, getCurrentAgentId, recordElasticError, recordError, recordError, recordError, recordError, recordError, recordError, recordErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddErrorCollection, recordElasticError, recordError, recordError, recordError, recordError, recordError, recordError, recordErrorpublic DefaultErrorHandler(AgentContext agentContext, com.atlassian.event.api.EventPublisher eventPublisher)
public void createElasticError(String context, @Nullable Long agentId, @Nullable ThrowableDetails throwableDetails, @Nullable String instanceId)
ErrorUpdateHandlercreateElasticError in interface ErrorUpdateHandlerpublic void createError(@Nullable
String entityKey,
Integer resultNumber,
Long agentId,
String context,
ThrowableDetails throwableDetails)
createError in interface ErrorUpdateHandlerpublic void createError(@Nullable
String entityKey,
Long resultNumber,
Long agentId,
String context,
ThrowableDetails throwableDetails)
createError in interface ErrorUpdateHandler@NotNull public Collection<ErrorDetails> getErrors(@NotNull ResultKey resultKey)
ErrorAccessorgetErrors in interface ErrorAccessorErrorDetails@NotNull public Collection<ErrorDetails> getErrors(@NotNull Key planKey)
ErrorAccessorgetErrors in interface ErrorAccessorErrorDetails@NotNull public Collection<ErrorDetails> getAllErrors()
ErrorAccessorgetAllErrors in interface ErrorAccessorErrorDetails@NotNull public Collection<ErrorDetails> getErrorsByAgentId(Long agentId)
ErrorAccessorgetErrorsByAgentId in interface ErrorAccessorErrorDetails@NotNull public Collection<ErrorDetails> getElasticErrors()
ErrorAccessorgetElasticErrors in interface ErrorAccessorErrorDetailspublic void clear()
ErrorHandlerclear in interface ErrorHandlerpublic void removeError(String buildKey, int errorNumber)
ErrorHandlerremoveError in interface ErrorHandlerbuildKey - The build containing the errorerrorNumber - The errorIndex'th error to be associated with the buildpublic ErrorDetails getErrorDetails(String buildKey, int errorNumber)
ErrorHandlergetErrorDetails in interface ErrorHandlerbuildKey - The build containing the error.errorNumber - The errorIndex'th error to be associated with the buildpublic void removeBuildErrors(String buildKey)
ErrorHandlerremoveBuildErrors in interface ErrorHandlerbuildKey - The key of the buildCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.