Top Description Fields Constructors Methods
org.eclipse.jgit.errors

public Class CommandFailedException

extends Exception
Class Inheritance

Thrown when an external command failed
Since
4.5

Field Summary

Modifier and TypeField and Description
private int
private static final long

Constructor Summary

AccessConstructor and Description
public
CommandFailedException(int
return code returned by the command
returnCode
,
String
error message
message
)

Constructor for CommandFailedException

public
CommandFailedException(int
return code returned by the command
returnCode
,
String
error message
message
,
Throwable
exception causing this exception
cause
)

Constructor for CommandFailedException

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

return code returned by the command
getReturnCode
()

Get return code returned by the command

Field Detail

returnCodeback to summary
private int returnCode
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

CommandFailedExceptionback to summary
public CommandFailedException(int returnCode, String message)

Constructor for CommandFailedException

Parameters
returnCode:int

return code returned by the command

message:String

error message

CommandFailedExceptionback to summary
public CommandFailedException(int returnCode, String message, Throwable cause)

Constructor for CommandFailedException

Parameters
returnCode:int

return code returned by the command

message:String

error message

cause:Throwable

exception causing this exception

Method Detail

getReturnCodeback to summary
public int getReturnCode()

Get return code returned by the command

Returns:int

return code returned by the command