Only when initiated with a FILENAME, the file will be closed. In any other case, nothing will be done.
Option | Defined in | Default |
---|---|---|
accept | Log::Report::Dispatcher |
|
charset | Log::Report::Dispatcher | <undef> |
died |
| |
exceptions | [] | |
format_reason | Log::Report::Dispatcher | 'LOWERCASE' |
locale | Log::Report::Dispatcher | <system locale> |
mode | Log::Report::Dispatcher | 'NORMAL' |
The message which was reported by eval
, which is used internally
to catch problems in the try block.
Returns all collected Log::Report::Exceptions
. The last of
them may be a fatal one. The other are non-fatal.
Other dispatchers translate the message here, and make it leave the program. However, messages in a "try" block are only captured in an intermediate layer: they may never be presented to an end-users. And for sure, we do not know the language yet.
The MESSAGE is either a STRING or a Log::Report::Message.
Re-cast the messages in all collect exceptions into the defined dispatchers, which were disabled during the try block. The OPTIONS will end-up as HASH-of-OPTIONS to Log::Report::report(); see Log::Report::Exception::throw() which does the job.
Re-cast only the fatal message to the defined dispatchers. If the block was left without problems, then nothing will be done. The OPTIONS will end-up as HASH-of-OPTIONS to Log::Report::report(); see Log::Report::Exception::throw() which does the job.
Returns true if the block was left with an fatal message.
If this object is kept in $@
, and someone uses this as string, we
want to show the fatal error message.
The message is not very informative for the good cause: we do not want
people to simply print the $@
, but wish for a re-cast of the message
using reportAll() or reportFatal().
Returns true if the block exited normally.
Returns the Log::Report::Exception which caused the "try" block to die, otherwise an empty LIST (undef).
Option | Default |
---|---|
class |
|