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,
Long agentId,
String context,
Date timeStamp,
ThrowableDetails throwableDetails) |
ErrorDetailsImpl(int errorNumber,
String planKey,
Long resultNumber,
Long agentId,
String context,
Date timeStamp,
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
|
Key |
getEntityKey()
Get entity key associated with this error
|
int |
getErrorNumber() |
Date |
getFirstOccurred() |
Date |
getLastOccurred() |
int |
getNumberOfOccurrences() |
ResultKey |
getResultKey()
Get result key associated with this error
|
Integer |
getResultNumber() |
Long |
getResultNumberLong() |
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 Long agentId, String context, @Nullable Date timeStamp, @Nullable ThrowableDetails throwableDetails)
public int getErrorNumber()
getErrorNumber
in interface ErrorDetails
@Deprecated public String getBuildKey()
getBuildKey
in interface ErrorDetails
@Nullable public Key getEntityKey()
ErrorDetails
getEntityKey
in interface ErrorDetails
@Deprecated public String getBuildResultKey()
getBuildResultKey
in interface ErrorDetails
@Nullable public 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 Integer getResultNumber()
getResultNumber
in interface ErrorDetails
@Nullable public Long getResultNumberLong()
getResultNumberLong
in interface ErrorDetails
public String getContext()
ErrorDetails
getContext
in interface ErrorDetails
@NotNull public Date getLastOccurred()
getLastOccurred
in interface ErrorDetails
ErrorDetails.getFirstOccurred()
)@NotNull public Date getFirstOccurred()
getFirstOccurred
in interface ErrorDetails
public int getNumberOfOccurrences()
getNumberOfOccurrences
in interface ErrorDetails
@Nullable public 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 © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.