line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Eidolon::Driver::DB::Exceptions; |
2
|
|
|
|
|
|
|
# ============================================================================== |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# Eidolon |
5
|
|
|
|
|
|
|
# Copyright (c) 2009, Atma 7 |
6
|
|
|
|
|
|
|
# --- |
7
|
|
|
|
|
|
|
# Eidolon/Driver/DB/Exceptions.pm - database driver exceptions |
8
|
|
|
|
|
|
|
# |
9
|
|
|
|
|
|
|
# ============================================================================== |
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
12
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
95
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
our $VERSION = "0.02"; # 2009-05-14 05:36:22 |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
use Eidolon::Core::Exception::Builder |
17
|
|
|
|
|
|
|
( |
18
|
1
|
|
|
|
|
18
|
"DriverError::DB" => |
19
|
|
|
|
|
|
|
{ |
20
|
|
|
|
|
|
|
"isa" => "DriverError", |
21
|
|
|
|
|
|
|
"title" => "Database driver error" |
22
|
|
|
|
|
|
|
}, |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
"DriverError::DB::Connect" => |
25
|
|
|
|
|
|
|
{ |
26
|
|
|
|
|
|
|
"isa" => "DriverError::DB", |
27
|
|
|
|
|
|
|
"title" => "Database connect error" |
28
|
|
|
|
|
|
|
}, |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
"DriverError::DB::SQL" => |
31
|
|
|
|
|
|
|
{ |
32
|
|
|
|
|
|
|
"isa" => "DriverError::DB", |
33
|
|
|
|
|
|
|
"title" => "SQL query error" |
34
|
|
|
|
|
|
|
}, |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
"DriverError::DB::AlreadyFetched" => |
37
|
|
|
|
|
|
|
{ |
38
|
|
|
|
|
|
|
"isa" => "DriverError::DB", |
39
|
|
|
|
|
|
|
"title" => "Data is already fetched during query execution (auto_fetch option is on)" |
40
|
|
|
|
|
|
|
} |
41
|
1
|
|
|
1
|
|
6
|
); |
|
1
|
|
|
|
|
2
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
1; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
__END__ |