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

public Class Die

extends RuntimeException
Class Inheritance
Known Direct Subclasses
org.eclipse.jgit.pgm.TextBuiltin.TerminatedByHelpException

Indicates a org.eclipse.jgit.pgm.TextBuiltin implementation has failed during execution.

Typically the stack trace for a Die exception is not shown to the user as it may indicate a simple error condition that the end-user can fix on their own, without needing a screen of Java stack frames.

Field Summary

Modifier and TypeField and Description
private boolean
private static final long

Constructor Summary

AccessConstructor and Description
public
Die(String
the message to show to the end-user.
why
)

Construct a new message explaining what has gone wrong.

public
Die(String
the message to show to the end-user.
why
,
Throwable
why the command has failed.
cause
)

Construct a new message explaining what has gone wrong.

public
Die(boolean
boolean indicating the fact the execution has been aborted
aborted
)

Construct a new exception reflecting the fact that the command execution has been aborted before running.

public
Die(boolean
boolean indicating the fact the execution has been aborted
aborted
,
Throwable
can be null
cause
)

Construct a new exception reflecting the fact that the command execution has been aborted before running.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

boolean indicating that the execution should be aborted
isAborted
()

Check if this exception should cause the execution to be aborted.

Field Detail

abortedback to summary
private boolean aborted
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.RuntimeException.serialVersionUID.

Constructor Detail

Dieback to summary
public Die(String why)

Construct a new message explaining what has gone wrong.

Parameters
why:String

the message to show to the end-user.

Dieback to summary
public Die(String why, Throwable cause)

Construct a new message explaining what has gone wrong.

Parameters
why:String

the message to show to the end-user.

cause:Throwable

why the command has failed.

Dieback to summary
public Die(boolean aborted)

Construct a new exception reflecting the fact that the command execution has been aborted before running.

Parameters
aborted:boolean

boolean indicating the fact the execution has been aborted

Since
3.4
Dieback to summary
public Die(boolean aborted, Throwable cause)

Construct a new exception reflecting the fact that the command execution has been aborted before running.

Parameters
aborted:boolean

boolean indicating the fact the execution has been aborted

cause:Throwable

can be null

Since
4.2

Method Detail

isAbortedback to summary
public boolean isAborted()

Check if this exception should cause the execution to be aborted.

Returns:boolean

boolean indicating that the execution should be aborted

Since
3.4