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

(-)a/Koha/Exceptions/Account.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::Account; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::Account' => {
24
    'Koha::Exceptions::Account' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::Account::IsNotCredit' => {
27
    'Koha::Exceptions::Account::IsNotCredit' => {
26
        isa         => 'Koha::Exceptions::Account',
28
        isa         => 'Koha::Exceptions::Account',
(-)a/Koha/Exceptions/Acquisition/Basket.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::Acquisition::Basket; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::Acquisition::Basket' => {
24
    'Koha::Exceptions::Acquisition::Basket' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::Acquisition::Basket::AlreadyClosed' => {
27
    'Koha::Exceptions::Acquisition::Basket::AlreadyClosed' => {
26
        isa         => 'Koha::Exceptions::Acquisition::Basket',
28
        isa         => 'Koha::Exceptions::Acquisition::Basket',
(-)a/Koha/Exceptions/ArticleRequest.pm (-2 / +4 lines)
Lines 17-25 package Koha::Exceptions::ArticleRequest; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
    'Koha::Exceptions::ArticleRequest' => {
23
    'Koha::Exceptions::ArticleRequest' => {
22
        description => 'Something went wrong!',
24
        isa => 'Koha::Exceptions::Exception',
23
    },
25
    },
24
    'Koha::Exceptions::ArticleRequest::LimitReached' => {
26
    'Koha::Exceptions::ArticleRequest::LimitReached' => {
25
        isa         => 'Koha::Exceptions::ArticleRequest',
27
        isa         => 'Koha::Exceptions::ArticleRequest',
Lines 43-46 Exception to be used when the article request limit has been reached. Link Here
43
45
44
=cut
46
=cut
45
47
46
1;
48
1;
(-)a/Koha/Exceptions/Authentication.pm (-1 / +3 lines)
Lines 2-11 package Koha::Exceptions::Authentication; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
8
7
    'Koha::Exceptions::Authentication' => {
9
    'Koha::Exceptions::Authentication' => {
8
        description => 'Something went wrong!',
10
        isa => 'Koha::Exceptions::Exception',
9
    },
11
    },
10
    'Koha::Exceptions::Authentication::Required' => {
12
    'Koha::Exceptions::Authentication::Required' => {
11
        isa => 'Koha::Exceptions::Authentication',
13
        isa => 'Koha::Exceptions::Authentication',
(-)a/Koha/Exceptions/Authorization.pm (-1 / +3 lines)
Lines 2-11 package Koha::Exceptions::Authorization; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
8
7
    'Koha::Exceptions::Authorization' => {
9
    'Koha::Exceptions::Authorization' => {
8
        description => 'Something went wrong!',
10
        isa => 'Koha::Exceptions::Exception',
9
    },
11
    },
10
    'Koha::Exceptions::Authorization::Unauthorized' => {
12
    'Koha::Exceptions::Authorization::Unauthorized' => {
11
        isa => 'Koha::Exceptions::Authorization',
13
        isa => 'Koha::Exceptions::Authorization',
(-)a/Koha/Exceptions/Checkout.pm (-1 / +3 lines)
Lines 2-10 package Koha::Exceptions::Checkout; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
    'Koha::Exceptions::Checkout' => {
8
    'Koha::Exceptions::Checkout' => {
7
        description => "Something went wrong!"
9
        isa => 'Koha::Exceptions::Exception',
8
    },
10
    },
9
    'Koha::Exceptions::Checkout::FailedRenewal' => {
11
    'Koha::Exceptions::Checkout::FailedRenewal' => {
10
        isa         => 'Koha::Exceptions::Checkout',
12
        isa         => 'Koha::Exceptions::Checkout',
(-)a/Koha/Exceptions/Checkouts/ReturnClaims.pm (-1 lines)
Lines 22-28 use Koha::Exceptions::Exception; Link Here
22
use Exception::Class (
22
use Exception::Class (
23
    'Koha::Exceptions::Checkouts::ReturnClaims' => {
23
    'Koha::Exceptions::Checkouts::ReturnClaims' => {
24
        isa         => 'Koha::Exceptions::Exception',
24
        isa         => 'Koha::Exceptions::Exception',
25
        description => 'Something went wrong!',
26
    },
25
    },
27
    'Koha::Exceptions::Checkouts::ReturnClaims::NoCreatedBy' => {
26
    'Koha::Exceptions::Checkouts::ReturnClaims::NoCreatedBy' => {
28
        isa         => 'Koha::Exceptions::Checkouts::ReturnClaims',
27
        isa         => 'Koha::Exceptions::Checkouts::ReturnClaims',
(-)a/Koha/Exceptions/ClubHold.pm (-1 / +3 lines)
Lines 2-10 package Koha::Exceptions::ClubHold; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
    'Koha::Exceptions::ClubHold' => {
8
    'Koha::Exceptions::ClubHold' => {
7
        description => "Something went wrong!",
9
        isa => 'Koha::Exceptions::Exception',
8
    },
10
    },
9
    'Koha::Exceptions::ClubHold::NoPatrons' => {
11
    'Koha::Exceptions::ClubHold::NoPatrons' => {
10
        isa => 'Koha::Exceptions::ClubHold',
12
        isa => 'Koha::Exceptions::ClubHold',
(-)a/Koha/Exceptions/Config.pm (-1 / +3 lines)
Lines 2-11 package Koha::Exceptions::Config; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
8
7
    'Koha::Exceptions::Config' => {
9
    'Koha::Exceptions::Config' => {
8
        description => 'Something went wrong!',
10
        isa => 'Koha::Exceptions::Exception',
9
    },
11
    },
10
    'Koha::Exceptions::Config::MissingEntry' => {
12
    'Koha::Exceptions::Config::MissingEntry' => {
11
        isa => 'Koha::Exceptions::Config',
13
        isa => 'Koha::Exceptions::Config',
(-)a/Koha/Exceptions/Elasticsearch.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::Elasticsearch; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::Elasticsearch' => {
24
    'Koha::Exceptions::Elasticsearch' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::Elasticsearch::BadResponse' => {
27
    'Koha::Exceptions::Elasticsearch::BadResponse' => {
26
        isa         => 'Koha::Exceptions::Elasticsearch',
28
        isa         => 'Koha::Exceptions::Elasticsearch',
(-)a/Koha/Exceptions/Ill.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::Ill; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::Ill' => {
24
    'Koha::Exceptions::Ill' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::Ill::InvalidBackendId' => {
27
    'Koha::Exceptions::Ill::InvalidBackendId' => {
26
        isa => 'Koha::Exceptions::Ill',
28
        isa => 'Koha::Exceptions::Ill',
(-)a/Koha/Exceptions/Item/Transfer.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::Item::Transfer; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::Item::Transfer' => {
24
    'Koha::Exceptions::Item::Transfer' => {
23
        description => 'Something went wrong'
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::Item::Transfer::InQueue' => {
27
    'Koha::Exceptions::Item::Transfer::InQueue' => {
26
        isa         => 'Koha::Exceptions::Item::Transfer',
28
        isa         => 'Koha::Exceptions::Item::Transfer',
(-)a/Koha/Exceptions/Library.pm (-1 / +3 lines)
Lines 2-11 package Koha::Exceptions::Library; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
8
7
    'Koha::Exceptions::Library::Exception' => {
9
    'Koha::Exceptions::Library::Exception' => {
8
        description => 'Something went wrong!',
10
        isa => 'Koha::Exceptions::Exception',
9
    },
11
    },
10
12
11
    'Koha::Exceptions::Library::NotFound' => {
13
    'Koha::Exceptions::Library::NotFound' => {
(-)a/Koha/Exceptions/MarcOverlayRule.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::MarcOverlayRule; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::MarcOverlayRule' => {
24
    'Koha::Exceptions::MarcOverlayRule' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::MarcOverlayRule::InvalidTagRegExp' => {
27
    'Koha::Exceptions::MarcOverlayRule::InvalidTagRegExp' => {
26
        isa => 'Koha::Exceptions::MarcOverlayRule',
28
        isa => 'Koha::Exceptions::MarcOverlayRule',
(-)a/Koha/Exceptions/Metadata.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::Metadata; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::Metadata' => {
24
    'Koha::Exceptions::Metadata' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::Metadata::Invalid' => {
27
    'Koha::Exceptions::Metadata::Invalid' => {
26
        isa => 'Koha::Exceptions::Metadata',
28
        isa => 'Koha::Exceptions::Metadata',
(-)a/Koha/Exceptions/Password.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::Password; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::Password' => {
24
    'Koha::Exceptions::Password' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::Password::Invalid' => {
27
    'Koha::Exceptions::Password::Invalid' => {
26
        isa => 'Koha::Exceptions::Password',
28
        isa => 'Koha::Exceptions::Password',
(-)a/Koha/Exceptions/Patron.pm (-1 / +3 lines)
Lines 2-10 package Koha::Exceptions::Patron; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
    'Koha::Exceptions::Patron' => {
8
    'Koha::Exceptions::Patron' => {
7
        description => "Something went wrong!"
9
        isa => 'Koha::Exceptions::Exception',
8
    },
10
    },
9
    'Koha::Exceptions::Patron::FailedDelete' => {
11
    'Koha::Exceptions::Patron::FailedDelete' => {
10
        isa         => 'Koha::Exceptions::Patron',
12
        isa         => 'Koha::Exceptions::Patron',
(-)a/Koha/Exceptions/Patron/Attribute.pm (-1 / +3 lines)
Lines 2-11 package Koha::Exceptions::Patron::Attribute; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
8
7
    'Koha::Exceptions::Patron::Attribute' => {
9
    'Koha::Exceptions::Patron::Attribute' => {
8
        description => 'Something went wrong'
10
        isa => 'Koha::Exceptions::Exception',
9
    },
11
    },
10
    'Koha::Exceptions::Patron::Attribute::InvalidType' => {
12
    'Koha::Exceptions::Patron::Attribute::InvalidType' => {
11
        isa         => 'Koha::Exceptions::Patron::Attribute',
13
        isa         => 'Koha::Exceptions::Patron::Attribute',
(-)a/Koha/Exceptions/Patron/Attribute/Type.pm (-1 / +3 lines)
Lines 2-11 package Koha::Exceptions::Patron::Attribute::Type; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
8
7
    'Koha::Exceptions::Patron::Attribute::Type' => {
9
    'Koha::Exceptions::Patron::Attribute::Type' => {
8
        description => 'Something went wrong'
10
        isa => 'Koha::Exceptions::Exception',
9
    },
11
    },
10
    'Koha::Exceptions::Patron::Attribute::Type::CannotChangeProperty' => {
12
    'Koha::Exceptions::Patron::Attribute::Type::CannotChangeProperty' => {
11
        isa => 'Koha::Exceptions::Patron::Attribute::Type',
13
        isa => 'Koha::Exceptions::Patron::Attribute::Type',
(-)a/Koha/Exceptions/Patron/Modification.pm (-1 / +3 lines)
Lines 2-11 package Koha::Exceptions::Patron::Modification; Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
4
5
use Koha::Exceptions::Exception;
6
5
use Exception::Class (
7
use Exception::Class (
6
8
7
    'Koha::Exceptions::Patron::Modification' => {
9
    'Koha::Exceptions::Patron::Modification' => {
8
        description => 'Something went wrong'
10
        isa => 'Koha::Exceptions::Exception',
9
    },
11
    },
10
    'Koha::Exceptions::Patron::Modification::DuplicateVerificationToken' => {
12
    'Koha::Exceptions::Patron::Modification::DuplicateVerificationToken' => {
11
        isa => 'Koha::Exceptions::Patron::Modification',
13
        isa => 'Koha::Exceptions::Patron::Modification',
(-)a/Koha/Exceptions/Patron/Relationship.pm (-1 / +3 lines)
Lines 17-26 package Koha::Exceptions::Patron::Relationship; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::Patron::Relationship' => {
24
    'Koha::Exceptions::Patron::Relationship' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
    'Koha::Exceptions::Patron::Relationship::DuplicateRelationship' => {
27
    'Koha::Exceptions::Patron::Relationship::DuplicateRelationship' => {
26
        isa         => 'Koha::Exceptions::Patron::Relationship',
28
        isa         => 'Koha::Exceptions::Patron::Relationship',
(-)a/Koha/Exceptions/Token.pm (-1 / +3 lines)
Lines 17-25 package Koha::Exceptions::Token; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
    'Koha::Exceptions::Token' => {
23
    'Koha::Exceptions::Token' => {
22
        description => 'Something went wrong!',
24
        isa => 'Koha::Exceptions::Exception',
23
    },
25
    },
24
    'Koha::Exceptions::Token::BadPattern' => {
26
    'Koha::Exceptions::Token::BadPattern' => {
25
        isa => 'Koha::Exceptions::Token',
27
        isa => 'Koha::Exceptions::Token',
(-)a/Koha/Exceptions/TransferLimit.pm (-2 / +3 lines)
Lines 17-26 package Koha::Exceptions::TransferLimit; Link Here
17
17
18
use Modern::Perl;
18
use Modern::Perl;
19
19
20
use Koha::Exceptions::Exception;
21
20
use Exception::Class (
22
use Exception::Class (
21
23
22
    'Koha::Exceptions::TransferLimit::Exception' => {
24
    'Koha::Exceptions::TransferLimit::Exception' => {
23
        description => 'Something went wrong!',
25
        isa => 'Koha::Exceptions::Exception',
24
    },
26
    },
25
27
26
    'Koha::Exceptions::TransferLimit::Duplicate' => {
28
    'Koha::Exceptions::TransferLimit::Duplicate' => {
27
- 

Return to bug 29857