Package com.atlassian.bamboo.logger
Interface ErrorDetails
-
- All Known Implementing Classes:
DecoratedErrorDetailsImpl
,ElasticErrorDetailsImpl
,ErrorDetailsImpl
public interface ErrorDetails
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Set<Long>
getAgentIds()
@Nullable String
getBuildKey()
Deprecated.since 5.5, usegetEntityKey()
@Nullable Integer
getBuildNumber()
Deprecated.since 5.5, usegetResultNumber()
String
getBuildResultKey()
Deprecated.since 5.5, usegetResultKey()
String
getContext()
Top level message related to error@Nullable Key
getEntityKey()
Get entity key associated with this errorint
getErrorNumber()
@NotNull Date
getFirstOccurred()
@NotNull Date
getLastOccurred()
int
getNumberOfOccurrences()
@Nullable ResultKey
getResultKey()
Get result key associated with this error@Nullable Integer
getResultNumber()
Deprecated.since 6.5, usegetResultNumberLong()
@Nullable Long
getResultNumberLong()
@Nullable ThrowableDetails
getThrowableDetails()
Contains the details of anyThrowable
which may have been thrown in the errorboolean
isBuildSpecific()
Is this error specific to one plan (true) or for all/any plans (false) e.g.
-
-
-
Method Detail
-
getBuildKey
@Nullable @Deprecated @Nullable String getBuildKey()
Deprecated.since 5.5, usegetEntityKey()
Full key for the build plan (e.g BAMBOO-TRUNK)- Returns:
- build key
-
getEntityKey
@Nullable @Nullable Key getEntityKey()
Get entity key associated with this error- Returns:
- entity key
-
getBuildNumber
@Nullable @Deprecated @Nullable Integer getBuildNumber()
Deprecated.since 5.5, usegetResultNumber()
-
getResultNumber
@Nullable @Deprecated @Nullable Integer getResultNumber()
Deprecated.since 6.5, usegetResultNumberLong()
- Returns:
- associated result number or null
-
getResultNumberLong
@Nullable @Nullable Long getResultNumberLong()
- Returns:
- associated result number or null
-
getBuildResultKey
@Deprecated String getBuildResultKey()
Deprecated.since 5.5, usegetResultKey()
Full key for the build result (e.g BAMBOO-TRUNK-4)- Returns:
- build result key
-
getResultKey
@Nullable @Nullable ResultKey getResultKey()
Get result key associated with this error- Returns:
- result key
-
isBuildSpecific
boolean isBuildSpecific()
Is this error specific to one plan (true) or for all/any plans (false) e.g. a system error or elastic error.- Returns:
- true if error contains a build key.
-
getErrorNumber
int getErrorNumber()
-
getContext
String getContext()
Top level message related to error
-
getFirstOccurred
@NotNull @NotNull Date getFirstOccurred()
- Returns:
- Date this error was first thrown
-
getLastOccurred
@NotNull @NotNull Date getLastOccurred()
- Returns:
- Date this error was last thrown (if it only occurred once it will be the same as
getFirstOccurred()
)
-
getNumberOfOccurrences
int getNumberOfOccurrences()
- Returns:
- Number of times this error has occurred
-
getThrowableDetails
@Nullable @Nullable ThrowableDetails getThrowableDetails()
Contains the details of anyThrowable
which may have been thrown in the error- Returns:
- details of any
Throwable
for this error
-
-