fail

$self->fail;

$self->fail($method_name, %args);
$self->fail($method_name);

The fail method exits the program with a 1 exit code. Optionally, you can call a handler before exiting by providing a method name with arguments. The handler will be called using the handle method so the arguments should be key/value pairs.

fail(Maybe[Str] $name, Any %args) : ()

method

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 14:

Unknown directive: =usage

Around line 21:

Unknown directive: =description

Around line 28:

Unknown directive: =signature

Around line 32:

Unknown directive: =type