Bug 34438: Database update
[koha.git] / Koha / Exceptions / XSLT.pm
1 package Koha::Exceptions::XSLT;
2
3 # Copyright 2022 Rijksmuseum, Koha Development Team
4 #
5 # This file is part of Koha.
6 #
7 # Koha is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
11 #
12 # Koha is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with Koha; if not, see <http://www.gnu.org/licenses>.
19
20 use Modern::Perl;
21 use Koha::Exception;
22 use Exception::Class (
23     'Koha::Exceptions::XSLT' => {
24         isa => 'Koha::Exception',
25     },
26     'Koha::Exceptions::XSLT::MissingFilename' => {
27         isa => 'Koha::Exceptions::XSLT',
28         description => 'File name required',
29     },
30     'Koha::Exceptions::XSLT::FetchFailed' => {
31         isa => 'Koha::Exceptions::XSLT',
32         description => 'Fetching xslt file failed',
33     },
34 );
35
36 =head1 NAME
37
38 Koha::Exceptions::XSLT - Base class for XSLT exceptions
39
40 =head1 DESCRIPTION
41
42 Defines a few exceptions for Koha::XSLT:: modules
43
44 =head1 Exceptions
45
46 =head2 Koha::Exceptions::XSLT
47
48 Generic XSLT exception.
49
50 =head2 Koha::Exceptions::XSLT::MissingFilename
51
52 Missing filename exception.
53
54 =head2 Koha::Exceptions::XSLT::FetchFailed
55
56 Failed to fetch the XSLT.
57
58 =cut
59
60 1;