java.lang.Object
java.lang.Throwable
java.lang.Exception
org.eclipse.jgit.internal.diffmergetool.ToolException
- All Implemented Interfaces:
Serializable
Tool exception for differentiation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate tool exceptionToolException(String message) Create tool exceptionToolException(String message, Throwable cause) Create tool exceptionToolException(String message, FS.ExecutionResult result, boolean commandExecutionError) Create tool exceptionToolException(Throwable cause) Create tool exception -
Method Summary
Modifier and TypeMethodDescriptionGet execution resultGet buffered stderr as a StringGet buffered stdout as a StringbooleanWhether execution failed with an errorbooleanisResult()Whether result is validMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ToolException
public ToolException()Create tool exception -
ToolException
Create tool exception- Parameters:
message- the exception message
-
ToolException
Create tool exception- Parameters:
message- the exception messageresult- the execution resultcommandExecutionError- is command execution error happened ?
-
ToolException
Create tool exception- Parameters:
message- the exception messagecause- the cause for throw
-
ToolException
Create tool exception- Parameters:
cause- the cause for throw
-
-
Method Details
-
isResult
public boolean isResult()Whether result is valid- Returns:
- true if result is valid, false else
-
getResult
Get execution result- Returns:
- the execution result
-
isCommandExecutionError
public boolean isCommandExecutionError()Whether execution failed with an error- Returns:
- true if command execution error appears, false otherwise
-
getResultStderr
Get buffered stderr as a String- Returns:
- the result Stderr
-
getResultStdout
Get buffered stdout as a String- Returns:
- the result Stdout
-