public abstract class AbstractErrorUpdateHandler extends Object implements ErrorUpdateHandler
| Modifier and Type | Field and Description |
|---|---|
protected AgentContext |
agentContext |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractErrorUpdateHandler(AgentContext agentContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorCollection(ResultKey buildKey,
ErrorCollection errors)
Adds all the error messages in the errorCollection to the build
|
protected @Nullable Long |
getCurrentAgentId() |
void |
recordElasticError(String context,
@Nullable Long agentId,
@Nullable Throwable throwable,
@Nullable String instanceId)
Record an error resulting from Elastic Bamboo
|
void |
recordError(@NotNull Key entityKey,
@Nullable String context)
Record a build error against a plan/deployment
|
void |
recordError(@NotNull Key entityKey,
@Nullable String context,
@NotNull Throwable throwable)
Record a build error against a plan/deployment
|
void |
recordError(@NotNull Key entityKey,
@Nullable String context,
@NotNull Throwable throwable,
@Nullable Map<String,String> metadata)
Record a build error against a plan/deployment
|
void |
recordError(@NotNull ResultKey resultKey,
String context,
@Nullable Throwable throwable)
Record an error against a result
|
void |
recordError(@NotNull ResultKey resultKey,
String context,
@Nullable Throwable throwable,
Map<String,String> metadata)
Record an error against a result
|
void |
recordError(String context)
Record general error
|
void |
recordError(String context,
@Nullable Throwable throwable)
Record general error
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateElasticError, createError, createErrorprotected final AgentContext agentContext
protected AbstractErrorUpdateHandler(AgentContext agentContext)
public void recordError(@NotNull
@NotNull Key entityKey,
@Nullable
@Nullable String context)
ErrorUpdateHandlerrecordError in interface ErrorUpdateHandlerpublic void recordError(@NotNull
@NotNull Key entityKey,
@Nullable
@Nullable String context,
@NotNull
@NotNull Throwable throwable)
ErrorUpdateHandlerrecordError in interface ErrorUpdateHandlerpublic void recordError(@NotNull
@NotNull Key entityKey,
@Nullable
@Nullable String context,
@NotNull
@NotNull Throwable throwable,
@Nullable
@Nullable Map<String,String> metadata)
ErrorUpdateHandlerrecordError in interface ErrorUpdateHandlermetadata - additional exception detailspublic void recordError(@NotNull
@NotNull ResultKey resultKey,
String context,
@Nullable
@Nullable Throwable throwable)
ErrorUpdateHandlerrecordError in interface ErrorUpdateHandlerresultKey - of the resultcontext - messagethrowable - errorpublic void recordError(@NotNull
@NotNull ResultKey resultKey,
String context,
@Nullable
@Nullable Throwable throwable,
Map<String,String> metadata)
ErrorUpdateHandlerrecordError in interface ErrorUpdateHandlerresultKey - of the resultcontext - messagethrowable - errormetadata - additional exception detailspublic void recordError(String context)
ErrorUpdateHandlerrecordError in interface ErrorUpdateHandlerpublic void recordError(String context, @Nullable @Nullable Throwable throwable)
ErrorUpdateHandlerrecordError in interface ErrorUpdateHandlerpublic void recordElasticError(String context, @Nullable @Nullable Long agentId, @Nullable @Nullable Throwable throwable, @Nullable @Nullable String instanceId)
ErrorUpdateHandlerrecordElasticError in interface ErrorUpdateHandlerpublic void addErrorCollection(ResultKey buildKey, ErrorCollection errors)
ErrorUpdateHandleraddErrorCollection in interface ErrorUpdateHandler@Nullable protected @Nullable Long getCurrentAgentId()
Copyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.