METHODS

Constructors

$class->new( OPTIONS, VARIABLES )
Option Default

message

<required>

reason

<required>

report_opts

{}

message => Log::Report::Message
reason => REASON
report_opts => HASH

Accessors

$obj->message
$obj->reason
$obj->report_opts

Reporting Exceptions

$obj->throw( OPTIONS )

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.

» Example: overrule defaults to report
 try { print {to => 'stderr'}, ERROR => 'oops!' };
 $@->reportFatal(to => 'syslog');