java.io.Serializable
public class UserException
extends java.lang.Exception
Command
usage.Modifier and Type | Field | Description |
---|---|---|
int |
exitCode |
The exist status the cli should use when catching this user error.
|
Constructor | Description |
---|---|
UserException(int exitCode,
java.lang.String msg) |
Constructs a UserException with an exit status and message to show the user.
|
UserException(int exitCode,
java.lang.String msg,
java.lang.Throwable cause) |
Constructs a new user exception with specified exit status, message, and underlying cause.
|
public final int exitCode
public UserException(int exitCode, java.lang.String msg)
public UserException(int exitCode, java.lang.String msg, java.lang.Throwable cause)
exitCode
- the exit codemsg
- the messagecause
- the underlying cause