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 🌈


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