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 to prevent
11       confusing and/or redundant re-application of Carp's stack trace
12       information.
13
14       These objects stringify to the contained error message, and use
15       overload fallback to give natural boolean/numeric values.
16

METHODS

18   throw
19       Arguments: $exception_scalar, $stacktrace
20
21       This is meant for internal use by DBIx::Class's "throw_exception" code,
22       and shouldn't be used directly elsewhere.
23
24       Expects a scalar exception message.  The optional argument $stacktrace
25       tells it to use "longmess" in Carp instead of "croak" in Carp::Clan.
26
27         DBIx::Class::Exception->throw('Foo');
28         eval { ... }; DBIx::Class::Exception->throw($@) if $@;
29
30   rethrow
31       This method provides some syntactic sugar in order to re-throw
32       exceptions.
33

AUTHORS

35       Brandon L. Black <blblack@gmail.com>
36

LICENSE

38       You may distribute this code under the same terms as Perl itself.
39
40
41
42perl v5.12.0                      2010-05-12         DBIx::Class::Exception(3)
Impressum