Package com.atlassian.bamboo.logger
Interface ErrorUpdateHandler
- All Known Subinterfaces:
ErrorHandler
- All Known Implementing Classes:
AbstractErrorUpdateHandler
,DefaultErrorHandler
,RemoteErrorUpdateHandler
@PublicApi
public interface ErrorUpdateHandler
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addErrorCollection
(ResultKey buildKey, ErrorCollection errors) Adds all the error messages in the errorCollection to the buildvoid
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.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 Bamboovoid
recordError
(@NotNull Key entityKey, @Nullable String context) Record a build error against a plan/deploymentvoid
recordError
(@NotNull Key entityKey, @Nullable String context, @NotNull Throwable throwable) Record a build error against a plan/deploymentvoid
recordError
(@NotNull Key entityKey, @Nullable String context, @NotNull Throwable throwable, @Nullable Map<String, String> metadata) Record a build error against a plan/deploymentvoid
recordError
(@NotNull ResultKey resultKey, @Nullable String context, @Nullable Throwable throwable) Record an error against a resultvoid
recordError
(@NotNull ResultKey resultKey, @Nullable String context, @Nullable Throwable throwable, @Nullable Map<String, String> metadata) Record an error against a resultvoid
recordError
(String context) Record general errorvoid
recordError
(String context, @Nullable Throwable throwable) Record general error
-
Method Details
-
recordError
Record general error- Parameters:
context
-
-
recordError
Record general error- Parameters:
context
-throwable
-
-
recordError
Record a build error against a plan/deployment- Parameters:
entityKey
-context
-
-
recordError
void recordError(@NotNull @NotNull Key entityKey, @Nullable @Nullable String context, @NotNull @NotNull Throwable throwable) Record a build error against a plan/deployment- Parameters:
entityKey
-context
-throwable
-
-
recordError
void recordError(@NotNull @NotNull Key entityKey, @Nullable @Nullable String context, @NotNull @NotNull Throwable throwable, @Nullable @Nullable Map<String, String> metadata) Record a build error against a plan/deployment- Parameters:
entityKey
-context
-throwable
-metadata
- additional exception details
-
recordError
void recordError(@NotNull @NotNull ResultKey resultKey, @Nullable @Nullable String context, @Nullable @Nullable Throwable throwable) Record an error against a result- Parameters:
resultKey
- of the resultcontext
- messagethrowable
- error
-
recordError
void recordError(@NotNull @NotNull ResultKey resultKey, @Nullable @Nullable String context, @Nullable @Nullable Throwable throwable, @Nullable @Nullable Map<String, String> metadata) Record an error against a result- Parameters:
resultKey
- of the resultcontext
- messagethrowable
- errormetadata
- additional exception details
-
addErrorCollection
Adds all the error messages in the errorCollection to the build- Parameters:
buildKey
-errors
-
-
createError
@Deprecated void createError(@Nullable @Nullable String entityKey, @Nullable @Nullable Integer resultNumber, Long agentId, String context, @Nullable @Nullable ThrowableDetails throwableDetails) Deprecated.since 6.5, usecreateError(String, Long, Long, String, ThrowableDetails)
-
createError
void createError(@Nullable @Nullable String entityKey, @Nullable @Nullable Long resultNumber, Long agentId, String context, @Nullable @Nullable ThrowableDetails throwableDetails) -
recordElasticError
void recordElasticError(String context, @Nullable @Nullable Long agentId, @Nullable @Nullable Throwable throwable, @Nullable @Nullable String instanceId) Record an error resulting from Elastic Bamboo- Parameters:
context
-agentId
-throwable
-instanceId
-
-
createElasticError
void createElasticError(String context, @Nullable @Nullable Long agentId, @Nullable @Nullable ThrowableDetails throwableDetails, @Nullable @Nullable String instanceId) Create an error regarding Elastic Bamboo.- Parameters:
context
-agentId
-throwableDetails
-instanceId
-
-
createError(String, Long, Long, String, ThrowableDetails)