Skip to content

Commit d0de40f

Browse files
authored
Describe RAKUDO_EXCEPTIONS_HANDLER
specifically the expected properties of the handler class
1 parent 89f75a3 commit d0de40f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/Programs/00-running.pod6

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,11 @@ Causes the module loader to print debugging information to standard error.
9292
9393
=defn C<RAKUDO_EXCEPTIONS_HANDLER> (I<Str>; C<src/core/Exception.pm>)
9494
Specifies the name of a custom exceptions handler. For example, to load and use
95-
C<Exceptions::JSON> class, set this env var to C<JSON>
95+
C<Exceptions::JSON> class that comes with Rakudo, set this env var to C<JSON>.
96+
The exception handling class needs to implement method C<process> that takes
97+
a single positional argument: the exception object. If that method returns
98+
a truthy value, the exception will also be printed to the terminal, as if
99+
the exception handler was not specified.
96100
97101
=defn C<RAKUDO_NO_DEPRECATIONS> (I<Bool>; C<src/core/Deprecations.pm>)
98102
If true, suppresses deprecation warnings triggered by the C<is DEPRECATED> trait.

0 commit comments

Comments
 (0)