CliktError

open class CliktError(message: String? = null, cause: Exception? = null, val statusCode: Int = 1, val printError: Boolean = true) : RuntimeException

An exception during command line processing that should be shown to the user.

If calling CliktCommand.main, these exceptions will be caught and the appropriate info will be printed.

Inheritors

Constructors

Link copied to clipboard
constructor(message: String? = null, cause: Exception? = null, statusCode: Int = 1, printError: Boolean = true)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?
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.