1DBIx::Class::Exception(U3s)er Contributed Perl DocumentatDiBoInx::Class::Exception(3)
2
3
4

NAME

6       DBIx::Class::Exception - Exception objects for DBIx::Class
7

DESCRIPTION

9       Exception objects of this class are used internally by the default
10       error handling of "throw_exception" in DBIx::Class::Schema and
11       derivatives.
12
13       These objects stringify to the contained error message, and use
14       overload fallback to give natural boolean/numeric values.
15

METHODS

17   throw
18       Arguments: $exception_scalar, $stacktrace
19
20       This is meant for internal use by DBIx::Class's "throw_exception" code,
21       and shouldn't be used directly elsewhere.
22
23       Expects a scalar exception message. The optional boolean $stacktrace
24       causes it to output a full trace similar to confess.
25
26         DBIx::Class::Exception->throw('Foo');
27         try { ... } catch { DBIx::Class::Exception->throw(shift) }
28
29   rethrow
30       This method provides some syntactic sugar in order to re-throw
31       exceptions.
32

FURTHER QUESTIONS?

34       Check the list of additional DBIC resources.
35
37       This module is free software copyright by the DBIx::Class (DBIC)
38       authors. You can redistribute it and/or modify it under the same terms
39       as the DBIx::Class library.
40
41
42
43perl v5.36.0                      2022-07-22         DBIx::Class::Exception(3)
Impressum