Option | Default |
---|---|
message | <required> |
reason | <required> |
report_opts | {} |
Check whether any of the classes listed in the message match CLASS (string) or the REGEX. This uses Log::Report::Message::inClass().
Insert the message contained in the exception into the currently
defined dispatchers. The throw
name is commonly known
exception related terminology for report
.
The OPTIONS overrule the captured options to Log::Report::report(). This can be used to overrule a destination. Also, the reason can be changed.
try { print {to => 'stderr'}, ERROR => 'oops!' }; $@->reportFatal(to => 'syslog'); $exception->throw(to => 'syslog'); $@->wasFatal->throw(reason => 'WARNING', is_fatal => 0);