line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Fey::ORM::Exceptions; |
2
|
|
|
|
|
|
|
|
3
|
9
|
|
|
9
|
|
47
|
use strict; |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
299
|
|
4
|
9
|
|
|
9
|
|
50
|
use warnings; |
|
9
|
|
|
|
|
17
|
|
|
9
|
|
|
|
|
458
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.47'; |
7
|
|
|
|
|
|
|
|
8
|
9
|
|
|
9
|
|
56
|
use Fey::Exceptions; |
|
9
|
|
|
|
|
49
|
|
|
9
|
|
|
|
|
560
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my %E; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
BEGIN { |
13
|
9
|
|
|
9
|
|
268
|
%E = ( |
14
|
|
|
|
|
|
|
'Fey::Exception::NoSuchRow' => { |
15
|
|
|
|
|
|
|
description => 'No row was found for a specified key.', |
16
|
|
|
|
|
|
|
isa => 'Fey::Exception', |
17
|
|
|
|
|
|
|
alias => 'no_such_row', |
18
|
|
|
|
|
|
|
}, |
19
|
|
|
|
|
|
|
); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
9
|
|
|
9
|
|
84
|
use Exception::Class (%E); |
|
9
|
|
|
|
|
19
|
|
|
9
|
|
|
|
|
105
|
|
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Fey::Exception->Trace(1); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
use Sub::Exporter -setup => |
27
|
9
|
50
|
|
9
|
|
7184
|
{ exports => [ map { $_->{alias} || () } values %E ] }; |
|
9
|
|
|
|
|
29
|
|
|
9
|
|
|
|
|
36
|
|
|
9
|
|
|
|
|
181
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
1; |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
# ABSTRACT: Defines exceptions used for Fey::ORM |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
__END__ |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=pod |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
=head1 NAME |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Fey::ORM::Exceptions - Defines exceptions used for Fey::ORM |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
version 0.47 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 SYNOPSIS |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
use Fey::ORM::Exceptions qw( no_such_row ); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=head1 DESCRIPTION |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
This module defines the exceptions which are used by the core Fey |
52
|
|
|
|
|
|
|
classes. |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 EXCEPTIONS |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
Loading this module defines the exception classes using |
57
|
|
|
|
|
|
|
C<Exception::Class>. This module also exports subroutines which can be |
58
|
|
|
|
|
|
|
used as a shorthand to throw a specific type of exception. |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 Fey::ORM::Exceptions |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Cannot find a row in a given table matching the given values |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
=head2 no_such_row() |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 AUTHOR |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
Dave Rolsky <autarch@urth.org> |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
This software is copyright (c) 2011 - 2015 by Dave Rolsky. |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
75
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=cut |