Cataly...:Basic(3pm)
π Cataly...:Basic π
okay bestie, pull up a chair because we're talking about Cataly...:Basic β the User Contributed Perl Documentation edition, no cap. This is the Perl manual page for the basic Catalyst Exception role, and honestly? It's giving foundational. π
β¨ NAME β¨
Catalyst::Exception::Basic β the Basic Catalyst Exception Role, fr fr. It's the little role that could. π¦
πΈ SYNOPSIS πΈ
so here's the whole vibe in code, bestie:
package My::Exception;
use Moose;
use namespace::clean -except => 'meta';
with 'Catalyst::Exception::Basic';
# Elsewhere..
My::Exception->throw( qq/Fatal exception/ );
and then, # Elsewhere.. you just throw it like the main character you are. π
See also Catalyst and Catalyst::Exception β iykyk, go read those too. π«Ά
π DESCRIPTION π
okay so real talk: this is the basic Catalyst Exception role which implements, like, all of Catalyst::Exception::Interface. every single bit. she ate and left no crumbs. π
π ATTRIBUTES π
π message
Holds the exception message. that's it, that's the whole attribute. she holds the message. iconic behaviour. β¨
π¦ METHODS π¦
π as_string
Stringifies the exception's message attribute. basically whenever the object gets stringified by overloading, this is the girl doing the work. not me being obsessed with a stringification method but here we are. π
π₯ throw( $message )
π₯ throw( message => $message )
π₯ throw( error => $error )
Throws a fatal exception. yes it's literally called throw and yes it does exactly what it says. three whole ways to call it, pick your fighter. π
π rethrow( $exception )
Rethrows a caught exception. caught it, looked at it, threw it right back. no notes. π§
β meta
Provided by Moose. we don't ask questions, we just say thank you Moose. π
π AUTHORS π
Catalyst Contributors, see Catalyst.pm. the whole squad, the whole group chat. π
πΈ COPYRIGHT πΈ
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. slay, legally speaking. βοΈβ¨
and that's the whole page bestie, no cap, every single detail intact π―
okay so the cute lil sign-off: this page is from the User Contributed Perl Documentation, generated with perl v5.40.0 on 2024-11-15. thanks for reading, mwah π ππ¦π
π¦ where this page comes from
- debian trixie: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatalyst-perl 5.90132-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms