Interface ErrorUpdateHandler

All Known Subinterfaces:
ErrorHandler
All Known Implementing Classes:
AbstractErrorUpdateHandler, DefaultErrorHandler, RemoteErrorUpdateHandler

@PublicApi public interface ErrorUpdateHandler
  • Method Details

    • recordError

      void recordError(String context)
      Record general error
      Parameters:
      context -
    • recordError

      void recordError(String context, @Nullable @Nullable Throwable throwable)
      Record general error
      Parameters:
      context -
      throwable -
    • recordError

      void recordError(@NotNull @NotNull Key entityKey, @Nullable @Nullable String context)
      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 result
      context - message
      throwable - 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 result
      context - message
      throwable - error
      metadata - additional exception details
    • addErrorCollection

      void addErrorCollection(ResultKey buildKey, ErrorCollection errors)
      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)
    • 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 -