|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.logger.ErrorDetails
public class ErrorDetails
Stores all the error details for many different sorts of errors. (i.e don't assume specific attributes will exists)
Nested Class Summary | |
---|---|
static class |
ErrorDetails.AgentIdentifier
View of BuildAgents referenced in a error report. |
Field Summary | |
---|---|
static java.lang.String |
ALL_BUILDS
|
static java.lang.String |
ELASTIC_BAMBOO
|
Constructor Summary | |
---|---|
ErrorDetails(int errorNumber,
java.lang.String planKey,
java.lang.Integer buildNumber,
java.lang.Long agentId,
java.lang.String context,
java.util.Date timeStamp,
ThrowableDetails throwableDetails,
PlanManager planManager,
LocalAgentManager localAgentManager,
BuildResultsSummaryManager buildResultsSummaryManager)
|
Method Summary | |
---|---|
java.util.Collection<ErrorDetails.AgentIdentifier> |
getAgentIdentifiers()
|
java.util.Set<java.lang.Long> |
getAgentIds()
|
java.util.Collection<BuildAgent> |
getAgents()
|
java.lang.String |
getBuildKey()
Full key for the build plan (e.g BAMBOO-TRUNK) |
java.lang.String |
getBuildName()
|
java.lang.Integer |
getBuildNumber()
|
java.lang.String |
getBuildResultKey()
Full key for the build result (e.g BAMBOO-TRUNK-4) |
java.lang.String |
getContext()
|
int |
getErrorNumber()
|
java.util.Date |
getFirstOccurred()
|
java.util.Date |
getLastOccurred()
|
int |
getNumberOfOccurrences()
|
ThrowableDetails |
getThrowableDetails()
Contains the details of any Throwable which may have been thrown in the error |
boolean |
isBuildExists()
Has a build result summary been saved in the data base for this build? Errors may short cicuit the rest of the build process so a build may not get saved. |
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()
Is this error specific to one plan (false) or for all plans (true) e.g. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ALL_BUILDS
public static final java.lang.String ELASTIC_BAMBOO
Constructor Detail |
---|
public ErrorDetails(int errorNumber, java.lang.String planKey, java.lang.Integer buildNumber, @Nullable java.lang.Long agentId, java.lang.String context, java.util.Date timeStamp, @Nullable ThrowableDetails throwableDetails, PlanManager planManager, LocalAgentManager localAgentManager, BuildResultsSummaryManager buildResultsSummaryManager)
Method Detail |
---|
public int getErrorNumber()
public java.lang.String getBuildName()
public java.lang.String getBuildKey()
public java.lang.String getBuildResultKey()
public java.util.Set<java.lang.Long> getAgentIds()
public java.util.Collection<BuildAgent> getAgents()
public java.util.Collection<ErrorDetails.AgentIdentifier> getAgentIdentifiers()
public java.lang.Integer getBuildNumber()
public java.lang.String getContext()
public java.util.Date getLastOccurred()
getFirstOccurred()
)public java.util.Date getFirstOccurred()
public int getNumberOfOccurrences()
@Nullable public ThrowableDetails getThrowableDetails()
Throwable
which may have been thrown in the error
Throwable
for this errorpublic boolean isBuildExists()
public boolean isForAllBuilds()
public boolean isBuildSpecific()
public boolean isElastic()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |