CliException
Class. It extends RuntimeException.
Ends a WP-CLI command with an error: thrown from a #[CliSubcommand] method,
WP-CLI prints Error: {message} and exits with the given code.
Constructor
Methods
getExitCode()
The exit code of the command, 1 to 255.
Returns int