Package com.atlassian.bamboo.logger
Class DecoratedErrorDetailsImpl
java.lang.Object
com.atlassian.bamboo.logger.DecoratedErrorDetailsImpl
- All Implemented Interfaces:
ErrorDetails
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classView of BuildAgents referenced in a error report.static classstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionDecoratedErrorDetailsImpl(@NotNull ErrorDetails errorDetails, @NotNull AgentManager agentManager, @NotNull CachedPlanManager cachedPlanManager, @NotNull ResultsSummaryManager resultsSummaryManager, @NotNull RepositoryDefinitionManager repositoryDefinitionManager, @NotNull CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringFull key for the build plan (e.g BAMBOO-TRUNK)Full key for the build result (e.g BAMBOO-TRUNK-4)Top level message related to error@Nullable KeyGet entity key associated with this errorint@NotNull Date@NotNull Dateint@Nullable ResultKeyGet result key associated with this error@Nullable Integer@Nullable Long@Nullable ThrowableDetailsContains the details of anyThrowablewhich may have been thrown in the errorbooleanHas 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.booleanIs this error specific to one plan (true) or for all/any plans (false) e.g.booleanboolean
-
Constructor Details
-
DecoratedErrorDetailsImpl
public DecoratedErrorDetailsImpl(@NotNull @NotNull ErrorDetails errorDetails, @NotNull @NotNull AgentManager agentManager, @NotNull @NotNull CachedPlanManager cachedPlanManager, @NotNull @NotNull ResultsSummaryManager resultsSummaryManager, @NotNull @NotNull RepositoryDefinitionManager repositoryDefinitionManager, @NotNull @NotNull CachedRepositoryDefinitionManager cachedRepositoryDefinitionManager)
-
-
Method Details
-
getBuildKey
Description copied from interface:ErrorDetailsFull key for the build plan (e.g BAMBOO-TRUNK)- Specified by:
getBuildKeyin interfaceErrorDetails- Returns:
- build key
-
getEntityKey
Description copied from interface:ErrorDetailsGet entity key associated with this error- Specified by:
getEntityKeyin interfaceErrorDetails- Returns:
- entity key
-
getResultNumber
- Specified by:
getResultNumberin interfaceErrorDetails- Returns:
- associated result number or null
-
getResultNumberLong
- Specified by:
getResultNumberLongin interfaceErrorDetails- Returns:
- associated result number or null
-
isBuildSpecific
public boolean isBuildSpecific()Description copied from interface:ErrorDetailsIs this error specific to one plan (true) or for all/any plans (false) e.g. a system error or elastic error.- Specified by:
isBuildSpecificin interfaceErrorDetails- Returns:
- true if error contains a build key.
-
getErrorNumber
public int getErrorNumber()- Specified by:
getErrorNumberin interfaceErrorDetails
-
getBuildResultKey
Description copied from interface:ErrorDetailsFull key for the build result (e.g BAMBOO-TRUNK-4)- Specified by:
getBuildResultKeyin interfaceErrorDetails- Returns:
- build result key
-
getResultKey
Description copied from interface:ErrorDetailsGet result key associated with this error- Specified by:
getResultKeyin interfaceErrorDetails- Returns:
- result key
-
getFirstOccurred
- Specified by:
getFirstOccurredin interfaceErrorDetails- Returns:
- Date this error was first thrown
-
getLastOccurred
- Specified by:
getLastOccurredin interfaceErrorDetails- Returns:
- Date this error was last thrown (if it only occurred once it will be the same as
ErrorDetails.getFirstOccurred())
-
getAgentIds
- Specified by:
getAgentIdsin interfaceErrorDetails
-
getContext
Description copied from interface:ErrorDetailsTop level message related to error- Specified by:
getContextin interfaceErrorDetails
-
getNumberOfOccurrences
public int getNumberOfOccurrences()- Specified by:
getNumberOfOccurrencesin interfaceErrorDetails- Returns:
- Number of times this error has occurred
-
getThrowableDetails
Description copied from interface:ErrorDetailsContains the details of anyThrowablewhich may have been thrown in the error- Specified by:
getThrowableDetailsin interfaceErrorDetails- Returns:
- details of any
Throwablefor this error
-
getAgents
-
getBuildName
-
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
-
getAgentIdentifiers
-
getRepositoryData
-
getRootRepository
-
getRepositoryLocationDefinitionLevel
-
isChainBranch
public boolean isChainBranch()
-