DBIx::C...ception(3)
π NAME π
DBIx::Class::Exception β Exception objects for DBIx::Class. This is the DBIx::C...ception(3) page from User Contributed Perl Documentation, bestie π
πΈ DESCRIPTION πΈ
Okay so, exception objects of this class are used internally by the default error handling of throw_exception in DBIx::Class::Schema and derivatives. Like, that's their whole main-character job.
These objects stringify to the contained error message, and they use overload fallback to give natural boolean/numeric values. Iconic behavior, no cap β¨
β¨ METHODS β¨
πͺ throw
- Arguments:
$exception_scalar,$stacktrace
This is meant for internal use by DBIx::Class's throw_exception code, and shouldn't be used directly elsewhere. So like, hands off unless you're the library, bestie π
It expects a scalar exception message. The optional boolean $stacktrace causes it to output a full trace similar to confess.
DBIx::Class::Exception->throw('Foo');
try { ... } catch { DBIx::Class::Exception->throw(shift) }
π« rethrow
This method provides some syntactic sugar in order to re-throw exceptions. Cute, convenient, slay π
π«Ά FURTHER QUESTIONS? π«Ά
Check the list of additional DBIC resources. That's where the extra lore lives, iykyk π
π COPYRIGHT AND LICENSE π
This module is free software copyright by the DBIx::Class (DBIC) authors. You can redistribute it and/or modify it under the same terms as the DBIx::Class library. Periodt π
Sign-off time: this page came from perl v5.42.0, dated 2025-01-22, and it's the DBIx::C...ception(3) manual page. bye bestie π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-DBIx-Class 0.082844-bp160.1.10 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms