| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package DBIx::Exceptions; |
|
2
|
|
|
|
|
|
|
BEGIN { |
|
3
|
1
|
|
|
1
|
|
106
|
$DBIx::Exceptions::VERSION = '0.001000_03'; |
|
4
|
|
|
|
|
|
|
} |
|
5
|
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Get full exception objects from DBI |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
use Exception::Class ( |
|
9
|
1
|
|
|
|
|
25
|
'DBIx::Exception' => { |
|
10
|
|
|
|
|
|
|
fields => [ 'original' ], |
|
11
|
|
|
|
|
|
|
}, |
|
12
|
|
|
|
|
|
|
'DBIx::Exception::ConstraintViolation' => { |
|
13
|
|
|
|
|
|
|
isa => 'DBIx::Exception', |
|
14
|
|
|
|
|
|
|
fields => [ 'column', 'constraint' ], |
|
15
|
|
|
|
|
|
|
}, |
|
16
|
|
|
|
|
|
|
'DBIx::Exception::NotUnique' => { |
|
17
|
|
|
|
|
|
|
isa => 'DBIx::Exception::ConstraintViolation', |
|
18
|
|
|
|
|
|
|
}, |
|
19
|
|
|
|
|
|
|
'DBIx::Exception::NotNull' => { |
|
20
|
|
|
|
|
|
|
isa => 'DBIx::Exception::ConstraintViolation', |
|
21
|
|
|
|
|
|
|
}, |
|
22
|
|
|
|
|
|
|
'DBIx::Exception::ForeignKey' => { |
|
23
|
|
|
|
|
|
|
isa => 'DBIx::Exception::ConstraintViolation', |
|
24
|
|
|
|
|
|
|
}, |
|
25
|
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
'DBIx::Exception::Timeout' => { |
|
27
|
|
|
|
|
|
|
isa => 'DBIx::Exception', |
|
28
|
|
|
|
|
|
|
fields => [], |
|
29
|
|
|
|
|
|
|
}, |
|
30
|
|
|
|
|
|
|
'DBIx::Exception::QueryCanceled' => { |
|
31
|
|
|
|
|
|
|
isa => 'DBIx::Exception::Timeout' |
|
32
|
|
|
|
|
|
|
}, |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
'DBIx::Exception::NotUnique' => { |
|
35
|
|
|
|
|
|
|
isa => 'DBIx::Exception::ConstraintViolation', |
|
36
|
|
|
|
|
|
|
}, |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
'DBIx::Exception::Deadlock' => { |
|
39
|
|
|
|
|
|
|
isa => 'DBIx::Exception', |
|
40
|
|
|
|
|
|
|
fields => [], |
|
41
|
|
|
|
|
|
|
}, |
|
42
|
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
'DBIx::Exception::Syntax' => { |
|
44
|
|
|
|
|
|
|
isa => 'DBIx::Exception', |
|
45
|
|
|
|
|
|
|
fields => [ 'near' ], |
|
46
|
|
|
|
|
|
|
}, |
|
47
|
|
|
|
|
|
|
'DBIx::Exception::NoSuchTable' => { |
|
48
|
|
|
|
|
|
|
isa => 'DBIx::Exception', |
|
49
|
|
|
|
|
|
|
fields => [ 'table' ], |
|
50
|
|
|
|
|
|
|
}, |
|
51
|
|
|
|
|
|
|
'DBIx::Exception::NoSuchColumn' => { |
|
52
|
|
|
|
|
|
|
isa => 'DBIx::Exception', |
|
53
|
|
|
|
|
|
|
fields => [ qw{column table} ], |
|
54
|
|
|
|
|
|
|
}, |
|
55
|
1
|
|
|
1
|
|
971
|
); |
|
|
1
|
|
|
|
|
10281
|
|
|
56
|
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
1; |
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
__END__ |