PrintMessage

open class PrintMessage(message: String, val statusCode: Int = 0, val printError: Boolean = false) : CliktError

An exception that indicates that a message should be printed.

Execution should be immediately halted.

Inheritors

Constructors

Link copied to clipboard
constructor(message: String, statusCode: Int = 0, printError: Boolean = false)

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.