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()
ErrorDetailsgetEntityKey in interface ErrorDetails@Deprecated public String getBuildResultKey()
getBuildResultKey in interface ErrorDetails@Nullable public ResultKey getResultKey()
ErrorDetailsgetResultKey in interface ErrorDetailspublic 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 ErrorDetailspublic String getContext()
ErrorDetailsgetContext in interface ErrorDetails@NotNull public Date getLastOccurred()
getLastOccurred in interface ErrorDetailsErrorDetails.getFirstOccurred())@NotNull public Date getFirstOccurred()
getFirstOccurred in interface ErrorDetailspublic int getNumberOfOccurrences()
getNumberOfOccurrences in interface ErrorDetails@Nullable public ThrowableDetails getThrowableDetails()
Throwable which may have been thrown in the errorgetThrowableDetails in interface ErrorDetailsThrowable for this errorpublic boolean isBuildSpecific()
ErrorDetailsisBuildSpecific in interface ErrorDetailspublic boolean isElastic()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.