@PublicApi
public interface ErrorUpdateHandler
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorCollection(ResultKey buildKey,
ErrorCollection errors)
Adds all the error messages in the errorCollection to the build
|
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)
Deprecated.
since 6.5, use
createError(String, Long, Long, String, ThrowableDetails) |
void |
createError(String entityKey,
Long resultNumber,
Long agentId,
String context,
ThrowableDetails throwableDetails) |
void |
recordElasticError(String context,
Long agentId,
Throwable throwable,
String instanceId)
Record an error resulting from Elastic Bamboo
|
void |
recordError(Key entityKey,
String context)
Record a build error against a plan/deployment
|
void |
recordError(Key entityKey,
String context,
Throwable throwable)
Record a build error against a plan/deployment
|
void |
recordError(Key entityKey,
String context,
Throwable throwable,
Map<String,String> metadata)
Record a build error against a plan/deployment
|
void |
recordError(ResultKey resultKey,
String context,
Throwable throwable)
Record an error against a result
|
void |
recordError(ResultKey resultKey,
String context,
Throwable throwable,
Map<String,String> metadata)
Record an error against a result
|
void |
recordError(String context)
Record general error
|
void |
recordError(String context,
Throwable throwable)
Record general error
|
void recordError(String context)
context - void recordError(String context, @Nullable Throwable throwable)
context - throwable - void recordError(@NotNull
Key entityKey,
@Nullable
String context)
entityKey - context - void recordError(@NotNull
Key entityKey,
@Nullable
String context,
@NotNull
Throwable throwable)
entityKey - context - throwable - void recordError(@NotNull
Key entityKey,
@Nullable
String context,
@NotNull
Throwable throwable,
@Nullable
Map<String,String> metadata)
entityKey - context - throwable - metadata - additional exception detailsvoid recordError(@NotNull
ResultKey resultKey,
@Nullable
String context,
@Nullable
Throwable throwable)
resultKey - of the resultcontext - messagethrowable - errorvoid recordError(@NotNull
ResultKey resultKey,
@Nullable
String context,
@Nullable
Throwable throwable,
@Nullable
Map<String,String> metadata)
resultKey - of the resultcontext - messagethrowable - errormetadata - additional exception detailsvoid addErrorCollection(ResultKey buildKey, ErrorCollection errors)
buildKey - errors - @Deprecated void createError(@Nullable String entityKey, @Nullable Integer resultNumber, Long agentId, String context, @Nullable ThrowableDetails throwableDetails)
createError(String, Long, Long, String, ThrowableDetails)void createError(@Nullable
String entityKey,
@Nullable
Long resultNumber,
Long agentId,
String context,
@Nullable
ThrowableDetails throwableDetails)
void recordElasticError(String context, @Nullable Long agentId, @Nullable Throwable throwable, @Nullable String instanceId)
context - agentId - throwable - instanceId - void createElasticError(String context, @Nullable Long agentId, @Nullable ThrowableDetails throwableDetails, @Nullable String instanceId)
context - agentId - throwableDetails - instanceId - Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.