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) |
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() |
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
|
boolean |
isForAllBuilds()
Deprecated.
since 5.5
|
public static final String ALL_BUILDS
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
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 error@Deprecated public boolean isForAllBuilds()
ErrorDetails
isForAllBuilds
in interface ErrorDetails
public boolean isBuildSpecific()
ErrorDetails
isBuildSpecific
in interface ErrorDetails
public boolean isElastic()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.