Package jetbrains.buildServer.agent.impl
Class BuildExceptionHandlerBase
- java.lang.Object
-
- jetbrains.buildServer.agent.impl.BuildExceptionHandlerBase
-
- Direct Known Subclasses:
BuildExceptionsHandler
,RunnerExceptionHandler
public class BuildExceptionHandlerBase extends Object
- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com) 06.10.10 1:32
-
-
Field Summary
Fields Modifier and Type Field Description protected Logger
LOG
protected AgentRunningBuildEx
myBuild
protected BuildProgressLogger
myLogger
-
Constructor Summary
Constructors Constructor Description BuildExceptionHandlerBase(AgentRunningBuildEx build, BuildProgressLogger logger)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static String
errorMessage(Throwable e)
protected BuildFinishedStatus
failBuildWithException(String errorMessage2Log, Throwable exception2Log, String errorType2Log)
protected String
getStageName(BuildStage stage)
protected String
getStageName(RunnerStage stage)
protected BuildFinishedStatus
processBasicException(Throwable rawCause)
-
-
-
Field Detail
-
LOG
protected final Logger LOG
-
myLogger
protected final BuildProgressLogger myLogger
-
myBuild
protected final AgentRunningBuildEx myBuild
-
-
Constructor Detail
-
BuildExceptionHandlerBase
public BuildExceptionHandlerBase(@NotNull AgentRunningBuildEx build, @NotNull BuildProgressLogger logger)
-
-
Method Detail
-
getStageName
@NotNull protected String getStageName(@Nullable BuildStage stage)
-
getStageName
@NotNull protected String getStageName(@Nullable RunnerStage stage)
-
processBasicException
@NotNull protected BuildFinishedStatus processBasicException(Throwable rawCause)
-
failBuildWithException
@NotNull protected BuildFinishedStatus failBuildWithException(@NotNull String errorMessage2Log, @Nullable Throwable exception2Log, @Nullable String errorType2Log)
-
-