@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,
@Nullable Long agentId,
@Nullable ThrowableDetails throwableDetails,
@Nullable String instanceId)
Create an error regarding Elastic Bamboo.
|
void |
createError(@Nullable String entityKey,
@Nullable Integer resultNumber,
Long agentId,
String context,
@Nullable ThrowableDetails throwableDetails)
Deprecated.
since 6.5, use
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)
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,
@Nullable String context,
@Nullable Throwable throwable)
Record an error against a result
|
void |
recordError(@NotNull ResultKey resultKey,
@Nullable String context,
@Nullable Throwable throwable,
@Nullable 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
|
void recordError(String context)
context
- void recordError(String context, @Nullable @Nullable Throwable throwable)
context
- throwable
- void recordError(@NotNull @NotNull Key entityKey, @Nullable @Nullable String context)
entityKey
- context
- void recordError(@NotNull @NotNull Key entityKey, @Nullable @Nullable String context, @NotNull @NotNull Throwable throwable)
entityKey
- context
- throwable
- void recordError(@NotNull @NotNull Key entityKey, @Nullable @Nullable String context, @NotNull @NotNull Throwable throwable, @Nullable @Nullable Map<String,String> metadata)
entityKey
- context
- throwable
- metadata
- additional exception detailsvoid recordError(@NotNull @NotNull ResultKey resultKey, @Nullable @Nullable String context, @Nullable @Nullable Throwable throwable)
resultKey
- of the resultcontext
- messagethrowable
- errorvoid recordError(@NotNull @NotNull ResultKey resultKey, @Nullable @Nullable String context, @Nullable @Nullable Throwable throwable, @Nullable @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 @Nullable String entityKey, @Nullable @Nullable Integer resultNumber, Long agentId, String context, @Nullable @Nullable ThrowableDetails throwableDetails)
createError(String, Long, Long, String, ThrowableDetails)
void createError(@Nullable @Nullable String entityKey, @Nullable @Nullable Long resultNumber, Long agentId, String context, @Nullable @Nullable ThrowableDetails throwableDetails)
void recordElasticError(String context, @Nullable @Nullable Long agentId, @Nullable @Nullable Throwable throwable, @Nullable @Nullable String instanceId)
context
- agentId
- throwable
- instanceId
- void createElasticError(String context, @Nullable @Nullable Long agentId, @Nullable @Nullable ThrowableDetails throwableDetails, @Nullable @Nullable String instanceId)
context
- agentId
- throwableDetails
- instanceId
- Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.