Constructors

Link copied to clipboard
constructor(message: String, argument: Argument, statusCode: Int = 1)
constructor(message: String, option: Option, statusCode: Int = 1)
constructor(argument: Argument, statusCode: Int = 1)
constructor(option: Option, statusCode: Int = 1)
constructor(message: String?, paramName: String? = null, statusCode: Int = 1)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open override var context: Context?

The context of the command that raised this error.

Link copied to clipboard
open val message: String?
Link copied to clipboard

The name of the parameter that caused the error.

Link copied to clipboard
val printError: Boolean = true

If true, the error message should be printed to stderr.

Link copied to clipboard
val statusCode: Int = 1

The value to use as the exit code for the process.

Functions

Link copied to clipboard
open fun formatMessage(localization: Localization, formatter: ParameterFormatter): String