|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
jetbrains.buildServer.RunBuildException
public class RunBuildException
Special exception which we throw when we can somewhat explain the reason of the build failure.
The message of this exception will be reported as error message in the build log. Cause exception (if presented) will be reported as well. Since 6.0 the client can also associate the error type. This allows the server to provide more data about the error occurred.
| Constructor Summary | |
|---|---|
RunBuildException(java.io.IOException cause)
Report IO problem. |
|
RunBuildException(java.lang.String message)
|
|
RunBuildException(java.lang.String message,
java.lang.Throwable cause)
|
|
RunBuildException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String errorType)
Report the running build error with the error type specified. |
|
RunBuildException(java.lang.Throwable cause)
Constructor for other types of underlying problems with no specific message |
|
| Method Summary | |
|---|---|
void |
copyParameters(RunBuildException fromException)
Copy all RunBuildException specific parameters to this instance of an exception. |
static RunBuildException |
create(com.intellij.execution.process.ProcessNotCreatedException source,
java.lang.String commandLine)
|
java.lang.String |
getErrorType()
Returns the error type associated with this exception. |
boolean |
isLogStacktrace()
|
void |
setErrorType(java.lang.String errorType)
Sets the error type for the this exception. |
void |
setLogStacktrace(boolean logStacktrace)
Sets whether the stacktrace should appear in the build log when handling this exception. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RunBuildException(java.lang.String message)
message - log error message
public RunBuildException(java.lang.String message,
java.lang.Throwable cause)
message - log error messagecause - original exception (logged with warning level)
public RunBuildException(java.lang.String message,
java.lang.Throwable cause,
java.lang.String errorType)
message - log error messagecause - original exception (logged with warning level)errorType - the error type, see ErrorDatapublic RunBuildException(java.io.IOException cause)
cause - original exception (logged with warning level)public RunBuildException(java.lang.Throwable cause)
cause - original exception| Method Detail |
|---|
public boolean isLogStacktrace()
public void setLogStacktrace(boolean logStacktrace)
logStacktrace - the flag valuepublic java.lang.String getErrorType()
public void setErrorType(java.lang.String errorType)
errorType - error type
public void copyParameters(@NotNull
RunBuildException fromException)
isLogStacktrace() and getErrorType()
fields. It is necessary to preserve those fields when re-throwing exceptions of this type to
have errors reported.
public static RunBuildException create(com.intellij.execution.process.ProcessNotCreatedException source,
java.lang.String commandLine)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||