public class CLIException extends Exception
| Constructor and Description |
|---|
CLIException(String message,
int exitCode)
Constructs a CLI Exception.
|
CLIException(String message,
int exitCode,
String subcommandName)
Constructs a CLI Exception.
|
CLIException(Throwable cause,
int exitCode)
Constructs a CLI Exception.
|
CLIException(Throwable cause,
int exitCode,
String subcommandName)
Constructs a CLI Exception.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getExitCode()
Returns exit code.
|
String |
getL10NMessage(Locale locale)
Returns localized message.
|
String |
getSubcommandName()
Returns sub command name.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CLIException(String message, int exitCode, String subcommandName)
message - Exception message.exitCode - Exit code.subcommandName - Sub Command Name.public CLIException(String message, int exitCode)
message - Exception message.exitCode - Exit code.public CLIException(Throwable cause, int exitCode)
cause - Throwable object.exitCode - Exit code.public int getExitCode()
public String getSubcommandName()
Copyright © 2010–2024 Open Identity Platform Community. All rights reserved.