Aion-Carp
view release on metacpan or search on metacpan
i18n/Aion/Carp.ru-en.po view on Meta::CPAN
msgid "Aion::Carp - добавлÑÐµÑ ÑÑаÑÑиÑÐ¾Ð²ÐºÑ ÑÑека в иÑклÑÑениÑ"
msgstr "Aion::Carp - adds stack trace to exceptions"
msgid "ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ Ð·Ð°Ð¼ÐµÐ½ÑÐµÑ `$SIG{__DIE__}` на ÑÑнкÑиÑ, добавлÑÑÑÑÑ Ð² иÑклÑÑÐµÐ½Ð¸Ñ ÑÑаÑÑиÑÐ¾Ð²ÐºÑ ÑÑека."
msgstr "This module replaces `$SIG{__DIE__}` with a function that adds a stack trace to exceptions."
msgid "ÐÑли иÑклÑÑением ÑвлÑеÑÑÑ ÑÑÑока, к ÑообÑÐµÐ½Ð¸Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÑеÑÑÑ ÑÑаÑÑиÑовка ÑÑека. РеÑли иÑклÑÑением ÑвлÑеÑÑÑ Ñ
ÑÑ (`{}`) или обÑÐµÐºÑ Ð½Ð° базе ...
msgstr "If the exception is a string, a stack trace is added to the message. And if the exception is a hash (`{}`) or a hash-based object (`bless {}, \"...\"), then the `STACKTRACE` key with stacktrace is added to it."
msgid "ÐÑи повÑоÑном вÑбÑаÑÑвании иÑклÑÑÐµÐ½Ð¸Ñ ÑÑаÑÑиÑовка ÑÑека не добавлÑеÑÑÑ, а оÑÑаÑÑÑÑ Ð¿Ñежней."
msgstr "When the exception is thrown again, the stack trace is not added, but remains the same."
msgid "ÐобавлÑÐµÑ ÑÑаÑÑиÑÐ¾Ð²ÐºÑ ÑÑека в `$message`."
msgstr "Adds a stack trace to `$message`."
msgid "ÐаменÑÐµÑ `$SIG{__DIE__}` на `handler`."
msgstr "Replaces `$SIG{__DIE__}` with `handler`."
msgid "â **GPLv3**"
msgstr "â **GPLv3**"
lib/Aion/Carp.pm view on Meta::CPAN
$exception = [];
eval { die $exception };
$@ # --> []
=head1 DESCRIPTION
This module replaces C<$SIG{__DIE__}> with a function that adds a stack trace to exceptions.
If the exception is a string, a stack trace is added to the message. And if the exception is a hash (C<{}>) or a hash-based object (C<bless {}, "..."), then the>STACKTRACE` key with stacktrace is added to it.
When the exception is thrown again, the stack trace is not added, but remains the same.
=head1 SUBROUTINES
=head2 handler ($message)
Adds a stack trace to C<$message>.
eval { Aion::Carp::handler("hi!") }; $@ # ~> ^hi!\n\tdie
=head2 import
( run in 1.221 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )