Interface ErrorHandler

All Superinterfaces:
ErrorAccessor, ErrorUpdateHandler
All Known Implementing Classes:
DefaultErrorHandler

@ThreadSafe @PublicApi public interface ErrorHandler extends ErrorUpdateHandler, ErrorAccessor
Describes an abstraction for dealing with errors that occur while building builds.
  • Method Details

    • clear

      void clear()
      Remove all errors from the handler
    • removeError

      void removeError(String buildKey, int errorIndex)
      Remove a specific error from the handler.
      Parameters:
      buildKey - The build containing the error
      errorIndex - The errorIndex'th error to be associated with the build
    • removeBuildErrors

      void removeBuildErrors(String buildKey)
      Remove all the errors for a given build
      Parameters:
      buildKey - The key of the build
    • getErrorDetails

      ErrorDetails getErrorDetails(String buildKey, int errorNumber)
      Obtain the specified error from the handler.
      Parameters:
      buildKey - The build containing the error.
      errorNumber - The errorIndex'th error to be associated with the build
      Returns:
      The error details