Verified Owner
Top Description Fields Constructors Methods
org.jabref.toolkit.exception

public Class CliException

extends JabRefException
Class Inheritance
Known Direct Subclasses
org.jabref.toolkit.exception.ExportServiceException, org.jabref.toolkit.exception.ImportServiceException
Annotations
@NullMarked
Imports
org.jabref.logic.JabRefException, org.jspecify.annotations.NullMarked

CLI-Exceptions that will be handled by PicoCLI and presented to the user (a localizable message is mandatory).

Field Summary

Modifier and TypeField and Description
private final int

Constructor Summary

AccessConstructor and Description
public
CliException(String message, String localizedMessage, int exitCode)

Creates a new CliException with a given localized message to present to the user.

public
CliException(String message, String localizedMessage, Throwable cause, int exitCode)

Creates a new CliException with a given localized message to present to the user and the cause of the Exception.

Method Summary

Modifier and TypeMethod and Description
public int

Field Detail

exitCodeback to summary
private final int exitCode

Constructor Detail

CliExceptionback to summary
public CliException(String message, String localizedMessage, int exitCode)

Creates a new CliException with a given localized message to present to the user.

CliExceptionback to summary
public CliException(String message, String localizedMessage, Throwable cause, int exitCode)

Creates a new CliException with a given localized message to present to the user and the cause of the Exception.

Method Detail

getExitCodeback to summary
public int getExitCode()