Top Description Fields Constructors Methods
org.eclipse.jgit.internal.diffmergetool

public Class ToolException

extends Exception
Class Inheritance
Imports
org.eclipse.jgit.util.FS.ExecutionResult, .SystemReader, org.slf4j.Logger, .LoggerFactory

Tool exception for differentiation.

Field Summary

Modifier and TypeField and Description
private final boolean
private static final Logger
private final FS.ExecutionResult
private static final long

Constructor Summary

AccessConstructor and Description
public
ToolException()

Create tool exception

public
ToolException(String
the exception message
message
)

Create tool exception

public
ToolException(String
the exception message
message
,
FS.ExecutionResult
the execution result
result
,
boolean
is command execution error happened ?
commandExecutionError
)

Create tool exception

public
ToolException(String
the exception message
message
,
Throwable
the cause for throw
cause
)

Create tool exception

public
ToolException(Throwable
the cause for throw
cause
)

Create tool exception

Method Summary

Modifier and TypeMethod and Description
public FS.ExecutionResult

Returns:

the execution result
getResult
()

Get execution result

public String

Returns:

the result Stderr
getResultStderr
()

Get buffered stderr as a String

public String

Returns:

the result Stdout
getResultStdout
()

Get buffered stdout as a String

public boolean

Returns:

true if command execution error appears, false otherwise
isCommandExecutionError
()

Whether execution failed with an error

public boolean

Returns:

true if result is valid, false else
isResult
()

Whether result is valid

Field Detail

commandExecutionErrorback to summary
private final boolean commandExecutionError
LOGback to summary
private static final Logger LOG
resultback to summary
private final FS.ExecutionResult result
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

the serial version UID

Constructor Detail

ToolExceptionback to summary
public ToolException()

Create tool exception

ToolExceptionback to summary
public ToolException(String message)

Create tool exception

Parameters
message:String

the exception message

ToolExceptionback to summary
public ToolException(String message, FS.ExecutionResult result, boolean commandExecutionError)

Create tool exception

Parameters
message:String

the exception message

result:FS.ExecutionResult

the execution result

commandExecutionError:boolean

is command execution error happened ?

ToolExceptionback to summary
public ToolException(String message, Throwable cause)

Create tool exception

Parameters
message:String

the exception message

cause:Throwable

the cause for throw

ToolExceptionback to summary
public ToolException(Throwable cause)

Create tool exception

Parameters
cause:Throwable

the cause for throw

Method Detail

getResultback to summary
public FS.ExecutionResult getResult()

Get execution result

Returns:FS.ExecutionResult

the execution result

getResultStderrback to summary
public String getResultStderr()

Get buffered stderr as a String

Returns:String

the result Stderr

getResultStdoutback to summary
public String getResultStdout()

Get buffered stdout as a String

Returns:String

the result Stdout

isCommandExecutionErrorback to summary
public boolean isCommandExecutionError()

Whether execution failed with an error

Returns:boolean

true if command execution error appears, false otherwise

isResultback to summary
public boolean isResult()

Whether result is valid

Returns:boolean

true if result is valid, false else