View | Details | Raw Unified | Return to bug 16330
Collapse All | Expand All

(-)a/Koha/Exceptions/Category.pm (+31 lines)
Lines 1-5 Link Here
1
package Koha::Exceptions::Category;
1
package Koha::Exceptions::Category;
2
2
3
# This file is part of Koha.
4
#
5
# Koha is free software; you can redistribute it and/or modify it under the
6
# terms of the GNU General Public License as published by the Free Software
7
# Foundation; either version 3 of the License, or (at your option) any later
8
# version.
9
#
10
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
11
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License along
15
# with Koha; if not, write to the Free Software Foundation, Inc.,
16
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
3
use Modern::Perl;
18
use Modern::Perl;
4
19
5
use Exception::Class (
20
use Exception::Class (
Lines 14-17 use Exception::Class ( Link Here
14
    },
29
    },
15
);
30
);
16
31
32
=head1 NAME
33
34
Koha::Exceptions::Category - Base class for patron categories exceptions
35
36
=head1 Exceptions
37
38
=head2 Koha::Exceptions::Category
39
40
Generic patron category exception
41
42
=head2 Koha::Exceptions::Category::CategorycodeNotFound
43
44
Exception to be used when the required patron category code is not found.
45
46
=cut
47
17
1;
48
1;
(-)a/Koha/Exceptions/Library.pm (+31 lines)
Lines 1-5 Link Here
1
package Koha::Exceptions::Library;
1
package Koha::Exceptions::Library;
2
2
3
# This file is part of Koha.
4
#
5
# Koha is free software; you can redistribute it and/or modify it under the
6
# terms of the GNU General Public License as published by the Free Software
7
# Foundation; either version 3 of the License, or (at your option) any later
8
# version.
9
#
10
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
11
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License along
15
# with Koha; if not, write to the Free Software Foundation, Inc.,
16
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
3
use Modern::Perl;
18
use Modern::Perl;
4
19
5
use Exception::Class (
20
use Exception::Class (
Lines 14-17 use Exception::Class ( Link Here
14
    },
29
    },
15
);
30
);
16
31
32
=head1 NAME
33
34
Koha::Exceptions::Library - Base class for libraries exceptions
35
36
=head1 Exceptions
37
38
=head2 Koha::Exceptions::Library
39
40
Generic library exception
41
42
=head2 Koha::Exceptions::Library::BranchcodeNotFound
43
44
Exception to be used when the required library code is not found.
45
46
=cut
47
17
1;
48
1;
(-)a/Koha/Exceptions/Patron.pm (-1 / +31 lines)
Lines 1-5 Link Here
1
package Koha::Exceptions::Patron;
1
package Koha::Exceptions::Patron;
2
2
3
# This file is part of Koha.
4
#
5
# Koha is free software; you can redistribute it and/or modify it under the
6
# terms of the GNU General Public License as published by the Free Software
7
# Foundation; either version 3 of the License, or (at your option) any later
8
# version.
9
#
10
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
11
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13
#
14
# You should have received a copy of the GNU General Public License along
15
# with Koha; if not, write to the Free Software Foundation, Inc.,
16
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
17
3
use Modern::Perl;
18
use Modern::Perl;
4
19
5
use Exception::Class (
20
use Exception::Class (
Lines 14-17 use Exception::Class ( Link Here
14
    },
29
    },
15
);
30
);
16
31
32
=head1 NAME
33
34
Koha::Exceptions::Patron - Base class for patrons exceptions
35
36
=head1 Exceptions
37
38
=head2 Koha::Exceptions::Patron
39
40
Generic patron exception
41
42
=head2 Koha::Exceptions::Patron::DuplicateObject
43
44
Exception to be used when trying to add duplicated data to the patrons DB.
45
46
=cut
47
17
1;
48
1;
18
- 

Return to bug 16330