|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.logger.AbstractErrorUpdateHandler
public abstract class AbstractErrorUpdateHandler
Constructor Summary | |
---|---|
AbstractErrorUpdateHandler()
|
Method Summary | |
---|---|
void |
addErrorCollection(java.lang.String buildKey,
ErrorCollection errors)
Adds all the error messages in the errorCollection to the build |
protected java.lang.Long |
getCurrentAgentId()
|
void |
recordElasticError(java.lang.String context,
java.lang.Long agentId,
java.lang.Throwable throwable,
java.lang.String instanceId)
Record an error resulting from Elastic Bamboo |
void |
recordError(BuildContext buildContext,
java.lang.String context,
java.lang.Throwable throwable)
|
void |
recordError(java.lang.String errorMessage)
|
void |
recordError(java.lang.String buildKey,
int buildNumber,
java.lang.String context,
java.lang.Throwable throwable)
Record a build error against a build |
void |
recordError(java.lang.String buildKey,
java.lang.String context)
Record a build error against a build |
void |
recordError(java.lang.String buildKey,
java.lang.String context,
java.lang.Throwable throwable)
Record a build error against a build |
void |
setAgentContext(AgentContext agentContext)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.logger.ErrorUpdateHandler |
---|
createElasticError, createError |
Constructor Detail |
---|
public AbstractErrorUpdateHandler()
Method Detail |
---|
public void recordError(java.lang.String buildKey, java.lang.String context)
ErrorUpdateHandler
recordError
in interface ErrorUpdateHandler
public void recordError(java.lang.String buildKey, java.lang.String context, java.lang.Throwable throwable)
ErrorUpdateHandler
recordError
in interface ErrorUpdateHandler
public void recordError(java.lang.String buildKey, int buildNumber, java.lang.String context, java.lang.Throwable throwable)
ErrorUpdateHandler
recordError
in interface ErrorUpdateHandler
buildKey
- key of the buildbuildNumber
- number of the build - can be nullcontext
- messagethrowable
- errorpublic void recordError(@Nullable BuildContext buildContext, @NotNull java.lang.String context, @Nullable java.lang.Throwable throwable)
recordError
in interface ErrorUpdateHandler
public void recordError(java.lang.String errorMessage)
recordError
in interface ErrorUpdateHandler
public void recordElasticError(java.lang.String context, @Nullable java.lang.Long agentId, @Nullable java.lang.Throwable throwable, @Nullable java.lang.String instanceId)
ErrorUpdateHandler
recordElasticError
in interface ErrorUpdateHandler
public void addErrorCollection(java.lang.String buildKey, ErrorCollection errors)
ErrorUpdateHandler
addErrorCollection
in interface ErrorUpdateHandler
@Nullable protected java.lang.Long getCurrentAgentId()
public void setAgentContext(AgentContext agentContext)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |