DOKK / manpages / debian 12 / sympa / Sympa::Crash.3sympa.en
Sympa::Crash(3Sympa) sympa 6.2.70 Sympa::Crash(3Sympa)

Sympa::Crash - Show traceback on critical error

  use Sympa::Crash;
  
  # Registering custom hook.
  use Sympa::Crash Hook => \&myhook;

Once Sympa::Crash is loaded, crash by runtime error will be reported via log and traceback will be shown in standard error.

If optional "Hook" parameter is given, it will be executed instead.

Sometimes other modules overwrites error handler. If that is the case, executing this function will register handler again.

Sympa::Crash appeared on Sympa 6.2.

2023-01-26 6.2.70