Package com.atlassian.bamboo.logger
Class ErrorDetailsImpl
java.lang.Object
com.atlassian.bamboo.logger.ErrorDetailsImpl
- All Implemented Interfaces:
ErrorDetails
- Direct Known Subclasses:
ElasticErrorDetailsImpl
Stores all the error details for many different sorts of errors. (i.e don't assume specific attributes will exists)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionErrorDetailsImpl(int errorNumber, String planKey, Integer resultNumber, @Nullable Long agentId, String context, @Nullable Date timeStamp, @Nullable ThrowableDetails throwableDetails) ErrorDetailsImpl(int errorNumber, String planKey, Long resultNumber, @Nullable Long agentId, String context, @Nullable Date timeStamp, @Nullable ThrowableDetails throwableDetails) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.since 5.5Deprecated.since 5.5Top 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 errorbooleanIs this error specific to one plan (true) or for all/any plans (false) e.g.booleanIs this error specific to Elastic Bamboo
-
Field Details
-
ALL_BUILDS
- See Also:
-
-
Constructor Details
-
ErrorDetailsImpl
-
ErrorDetailsImpl
-
-
Method Details
-
getErrorNumber
public int getErrorNumber()- Specified by:
getErrorNumberin interfaceErrorDetails
-
getBuildKey
Deprecated.since 5.5Full 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
-
getBuildResultKey
Deprecated.since 5.5Full 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
-
getAgentIds
- Specified by:
getAgentIdsin interfaceErrorDetails
-
getResultNumber
- Specified by:
getResultNumberin interfaceErrorDetails- Returns:
- associated result number or null
-
getResultNumberLong
- Specified by:
getResultNumberLongin interfaceErrorDetails- Returns:
- associated result number or null
-
getContext
Description copied from interface:ErrorDetailsTop level message related to error- Specified by:
getContextin interfaceErrorDetails
-
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())
-
getFirstOccurred
- Specified by:
getFirstOccurredin interfaceErrorDetails- Returns:
- Date this error was first thrown
-
getNumberOfOccurrences
public int getNumberOfOccurrences()- Specified by:
getNumberOfOccurrencesin interfaceErrorDetails- Returns:
- Number of times this error has occurred
-
getThrowableDetails
Contains the details of anyThrowablewhich may have been thrown in the error- Specified by:
getThrowableDetailsin interfaceErrorDetails- Returns:
- details of any
Throwablefor this error
-
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.
-
isElastic
public boolean isElastic()Is this error specific to Elastic Bamboo- Returns:
- true if error is for elastic bamboo, otherwise false.
-