Class DecoratedErrorDetailsImpl

java.lang.Object
com.atlassian.bamboo.logger.DecoratedErrorDetailsImpl
All Implemented Interfaces:
ErrorDetails

public class DecoratedErrorDetailsImpl extends Object implements ErrorDetails
  • Constructor Details

  • Method Details

    • getBuildKey

      @Nullable public @Nullable String getBuildKey()
      Description copied from interface: ErrorDetails
      Full key for the build plan (e.g BAMBOO-TRUNK)
      Specified by:
      getBuildKey in interface ErrorDetails
      Returns:
      build key
    • getEntityKey

      @Nullable public @Nullable Key getEntityKey()
      Description copied from interface: ErrorDetails
      Get entity key associated with this error
      Specified by:
      getEntityKey in interface ErrorDetails
      Returns:
      entity key
    • getResultNumber

      @Nullable public @Nullable Integer getResultNumber()
      Specified by:
      getResultNumber in interface ErrorDetails
      Returns:
      associated result number or null
    • getResultNumberLong

      @Nullable public @Nullable Long getResultNumberLong()
      Specified by:
      getResultNumberLong in interface ErrorDetails
      Returns:
      associated result number or null
    • isBuildSpecific

      public boolean isBuildSpecific()
      Description copied from interface: ErrorDetails
      Is this error specific to one plan (true) or for all/any plans (false) e.g. a system error or elastic error.
      Specified by:
      isBuildSpecific in interface ErrorDetails
      Returns:
      true if error contains a build key.
    • getErrorNumber

      public int getErrorNumber()
      Specified by:
      getErrorNumber in interface ErrorDetails
    • getBuildResultKey

      public String getBuildResultKey()
      Description copied from interface: ErrorDetails
      Full key for the build result (e.g BAMBOO-TRUNK-4)
      Specified by:
      getBuildResultKey in interface ErrorDetails
      Returns:
      build result key
    • getResultKey

      @Nullable public @Nullable ResultKey getResultKey()
      Description copied from interface: ErrorDetails
      Get result key associated with this error
      Specified by:
      getResultKey in interface ErrorDetails
      Returns:
      result key
    • getFirstOccurred

      @NotNull public @NotNull Date getFirstOccurred()
      Specified by:
      getFirstOccurred in interface ErrorDetails
      Returns:
      Date this error was first thrown
    • getLastOccurred

      @NotNull public @NotNull Date getLastOccurred()
      Specified by:
      getLastOccurred in interface ErrorDetails
      Returns:
      Date this error was last thrown (if it only occurred once it will be the same as ErrorDetails.getFirstOccurred())
    • getAgentIds

      public Set<Long> getAgentIds()
      Specified by:
      getAgentIds in interface ErrorDetails
    • getContext

      public String getContext()
      Description copied from interface: ErrorDetails
      Top level message related to error
      Specified by:
      getContext in interface ErrorDetails
    • getNumberOfOccurrences

      public int getNumberOfOccurrences()
      Specified by:
      getNumberOfOccurrences in interface ErrorDetails
      Returns:
      Number of times this error has occurred
    • getThrowableDetails

      @Nullable public @Nullable ThrowableDetails getThrowableDetails()
      Description copied from interface: ErrorDetails
      Contains the details of any Throwable which may have been thrown in the error
      Specified by:
      getThrowableDetails in interface ErrorDetails
      Returns:
      details of any Throwable for this error
    • getAgents

      public List<BuildAgent> getAgents()
    • getBuildName

      public String getBuildName()
    • getParentPlanKey

      public PlanKey getParentPlanKey()
    • isBuildExists

      public boolean isBuildExists()
      Has a build result summary been saved in the data base for this build? Errors may short circuit the rest of the build process so a build may not get saved.
      Returns:
      true if a saved build result exists for this error otherwise returns false
    • isElastic

      public boolean isElastic()
    • getInstanceIds

      public List<String> getInstanceIds()
    • getAgentIdentifiers

      public List<DecoratedErrorDetailsImpl.AgentIdentifier> getAgentIdentifiers()
    • getRepositoryData

      @TemplateAccessible public PartialVcsRepositoryData getRepositoryData()
    • getRootRepository

      @TemplateAccessible public VcsRepositoryData getRootRepository()
    • getRepositoryLocationDefinitionLevel

      @TemplateAccessible public DecoratedErrorDetailsImpl.RepositoryLevel getRepositoryLocationDefinitionLevel()
    • isChainBranch

      public boolean isChainBranch()