public class ErrorDetailsImpl extends Object implements ErrorDetails
Modifier and Type | Field and Description |
---|---|
static String |
ALL_BUILDS |
Constructor and Description |
---|
ErrorDetailsImpl(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) |
Modifier and Type | Method and Description |
---|---|
Set<Long> |
getAgentIds() |
String |
getBuildKey()
Deprecated.
since 5.5
|
Integer |
getBuildNumber()
Deprecated.
since 5.5
|
String |
getBuildResultKey()
Deprecated.
since 5.5
|
String |
getContext()
Top level message related to error
|
@Nullable Key |
getEntityKey()
Get entity key associated with this error
|
int |
getErrorNumber() |
@NotNull Date |
getFirstOccurred() |
@NotNull Date |
getLastOccurred() |
int |
getNumberOfOccurrences() |
@Nullable ResultKey |
getResultKey()
Get result key associated with this error
|
@Nullable Integer |
getResultNumber() |
@Nullable Long |
getResultNumberLong() |
@Nullable ThrowableDetails |
getThrowableDetails()
Contains the details of any
Throwable which may have been thrown in the error |
boolean |
isBuildSpecific()
Is this error specific to one plan (true) or for all/any plans (false) e.g.
|
boolean |
isElastic()
Is this error specific to Elastic Bamboo
|
public static final String ALL_BUILDS
public ErrorDetailsImpl(int errorNumber, String planKey, Long resultNumber, @Nullable @Nullable Long agentId, String context, @Nullable @Nullable Date timeStamp, @Nullable @Nullable ThrowableDetails throwableDetails)
public int getErrorNumber()
getErrorNumber
in interface ErrorDetails
@Deprecated public String getBuildKey()
getBuildKey
in interface ErrorDetails
@Nullable public @Nullable Key getEntityKey()
ErrorDetails
getEntityKey
in interface ErrorDetails
@Deprecated public String getBuildResultKey()
getBuildResultKey
in interface ErrorDetails
@Nullable public @Nullable ResultKey getResultKey()
ErrorDetails
getResultKey
in interface ErrorDetails
public Set<Long> getAgentIds()
getAgentIds
in interface ErrorDetails
@Deprecated public Integer getBuildNumber()
getBuildNumber
in interface ErrorDetails
@Nullable public @Nullable Integer getResultNumber()
getResultNumber
in interface ErrorDetails
@Nullable public @Nullable Long getResultNumberLong()
getResultNumberLong
in interface ErrorDetails
public String getContext()
ErrorDetails
getContext
in interface ErrorDetails
@NotNull public @NotNull Date getLastOccurred()
getLastOccurred
in interface ErrorDetails
ErrorDetails.getFirstOccurred()
)@NotNull public @NotNull Date getFirstOccurred()
getFirstOccurred
in interface ErrorDetails
public int getNumberOfOccurrences()
getNumberOfOccurrences
in interface ErrorDetails
@Nullable public @Nullable ThrowableDetails getThrowableDetails()
Throwable
which may have been thrown in the errorgetThrowableDetails
in interface ErrorDetails
Throwable
for this errorpublic boolean isBuildSpecific()
ErrorDetails
isBuildSpecific
in interface ErrorDetails
public boolean isElastic()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.
View cookie preferences