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

(-)a/Koha/Exceptions.pm (-20 / +1 lines)
Lines 9-20 use Exception::Class ( Link Here
9
        isa => 'Koha::Exceptions::Exception',
9
        isa => 'Koha::Exceptions::Exception',
10
        description => 'A bad parameter was given',
10
        description => 'A bad parameter was given',
11
        fields => ['parameter'],
11
        fields => ['parameter'],
12
    },
12
     },
13
    'Koha::Exceptions::BadParameter' => {
14
        isa => 'Koha::Exceptions::Exception',
15
        description => 'A bad parameter was given',
16
        fields => ['parameter'],
17
    },
18
    'Koha::Exceptions::DuplicateObject' => {
13
    'Koha::Exceptions::DuplicateObject' => {
19
        isa => 'Koha::Exceptions::Exception',
14
        isa => 'Koha::Exceptions::Exception',
20
        description => 'Same object already exists',
15
        description => 'Same object already exists',
Lines 27-56 use Exception::Class ( Link Here
27
        isa => 'Koha::Exceptions::Exception',
22
        isa => 'Koha::Exceptions::Exception',
28
        description => 'The default value cannot be deleted'
23
        description => 'The default value cannot be deleted'
29
    },
24
    },
30
    'Koha::Exceptions::InvalidDate' => {
31
        isa => 'Koha::Exceptions::Exception',
32
        description => "Date is invalid.",
33
        fields => ["date"],
34
    },
35
    'Koha::Exceptions::MissingParameter' => {
25
    'Koha::Exceptions::MissingParameter' => {
36
        isa => 'Koha::Exceptions::Exception',
26
        isa => 'Koha::Exceptions::Exception',
37
        description => 'A required parameter is missing',
27
        description => 'A required parameter is missing',
38
        fields => ["parameter"],
28
        fields => ["parameter"],
39
    },
29
    },
40
    'Koha::Exceptions::AuthenticationRequired' => {
41
        isa => 'Koha::Exceptions::Exception',
42
        description => 'Authentication is required.',
43
    },
44
    'Koha::Exceptions::NoPermission' => {
30
    'Koha::Exceptions::NoPermission' => {
45
        isa => 'Koha::Exceptions::Exception',
31
        isa => 'Koha::Exceptions::Exception',
46
        description => 'No permission to access this resource.',
32
        description => 'No permission to access this resource.',
47
        fields => ["required_permissions"]
33
        fields => ["required_permissions"]
48
    },
34
    },
49
    'Koha::Exceptions::NotImplemented' => {
50
        isa => 'Koha::Exceptions::Exception',
51
        description => 'A subroutine is not implemented',
52
        fields => ["subroutine"]
53
    },
54
    'Koha::Exceptions::NoChanges' => {
35
    'Koha::Exceptions::NoChanges' => {
55
        isa => 'Koha::Exceptions::Exception',
36
        isa => 'Koha::Exceptions::Exception',
56
        description => 'No changes were made',
37
        description => 'No changes were made',
(-)a/Koha/Exceptions/Biblio.pm (-5 lines)
Lines 7-17 use Exception::Class ( Link Here
7
    'Koha::Exceptions::Biblio' => {
7
    'Koha::Exceptions::Biblio' => {
8
        description => 'Something went wrong!',
8
        description => 'Something went wrong!',
9
    },
9
    },
10
    'Koha::Exceptions::Biblio::AnotherItemCheckedOut' => {
11
        isa => 'Koha::Exceptions::Biblio',
12
        description => "Another item from same biblio already checked out.",
13
        fields => ["itemnumbers"],
14
    },
15
    'Koha::Exceptions::Biblio::CheckedOut' => {
10
    'Koha::Exceptions::Biblio::CheckedOut' => {
16
        isa => 'Koha::Exceptions::Biblio',
11
        isa => 'Koha::Exceptions::Biblio',
17
        description => "Biblio is already checked out for patron.",
12
        description => "Biblio is already checked out for patron.",
(-)a/Koha/Exceptions/Checkout.pm (-21 lines)
Lines 27-57 use Exception::Class ( Link Here
27
        description => "Maximum number of checkouts have been reached, or none allowed.",
27
        description => "Maximum number of checkouts have been reached, or none allowed.",
28
        fields => ["max_checkouts_allowed", "current_checkout_count"],
28
        fields => ["max_checkouts_allowed", "current_checkout_count"],
29
    },
29
    },
30
    'Koha::Exceptions::Checkout::MaximumOnsiteCheckoutsReached' => {
31
        isa => 'Koha::Exceptions::Checkout',
32
        description => "Maximum number of on-site checkouts have been reached.",
33
        fields => ["max_onsite_checkouts", "current_onsite_checkouts"],
34
    },
35
    'Koha::Exceptions::Checkout::NoMoreRenewals' => {
30
    'Koha::Exceptions::Checkout::NoMoreRenewals' => {
36
        isa => 'Koha::Exceptions::Checkout',
31
        isa => 'Koha::Exceptions::Checkout',
37
        description => "No more renewals are allowed.",
32
        description => "No more renewals are allowed.",
38
    },
33
    },
39
    'Koha::Exceptions::Checkout::NoRenewalForOnsiteCheckouts' => {
40
        isa => 'Koha::Exceptions::Checkout',
41
        description => "On-site checkouts cannot be renewed.",
42
    },
43
    'Koha::Exceptions::Checkout::OnsiteCheckoutsDisabled' => {
44
        isa => 'Koha::Exceptions::Checkout',
45
        description => "On-site checkouts are disabled.",
46
    },
47
    'Koha::Exceptions::Checkout::OnsiteCheckoutWillBeSwitched' => {
48
        isa => 'Koha::Exceptions::Checkout',
49
        description => "On-site checkout will be switched to normal checkout.",
50
    },
51
    'Koha::Exceptions::Checkout::PreviouslyCheckedOut' => {
52
        isa => 'Koha::Exceptions::Checkout',
53
        description => "This biblio has been previously checked out by this patron.",
54
    },
55
    'Koha::Exceptions::Checkout::Renew' => {
34
    'Koha::Exceptions::Checkout::Renew' => {
56
        isa => 'Koha::Exceptions::Checkout',
35
        isa => 'Koha::Exceptions::Checkout',
57
        description => "Checkout will be renewed.",
36
        description => "Checkout will be renewed.",
(-)a/Koha/Exceptions/Item.pm (-5 lines)
Lines 55-65 use Exception::Class ( Link Here
55
        description => "Item not found.",
55
        description => "Item not found.",
56
        fields => ['itemnumber'],
56
        fields => ['itemnumber'],
57
    },
57
    },
58
    'Koha::Exceptions::Item::NotForLoanForcing' => {
59
        isa => 'Koha::Exceptions::Item',
60
        description => "Item is marked as not for loan, but it is possible to override.",
61
        fields => ["notforloan"],
62
    },
63
    'Koha::Exceptions::Item::Restricted' => {
58
    'Koha::Exceptions::Item::Restricted' => {
64
        isa => 'Koha::Exceptions::Item',
59
        isa => 'Koha::Exceptions::Item',
65
        description => "Item is marked as restricted.",
60
        description => "Item is marked as restricted.",
(-)a/Koha/Exceptions/Patron.pm (-6 lines)
Lines 57-67 use Exception::Class ( Link Here
57
        isa => 'Koha::Exceptions::Patron',
57
        isa => 'Koha::Exceptions::Patron',
58
        description => "Patron not found.",
58
        description => "Patron not found.",
59
        fields => ['borrowernumber'],
59
        fields => ['borrowernumber'],
60
    },
61
    'Koha::Exceptions::Patron::OtherCharges' => {
62
        isa => 'Koha::Exceptions::Patron',
63
        description => "Patron has other outstanding charges.",
64
        fields => ["balance", "other_charges"],
65
    }
60
    }
66
);
61
);
67
62
68
- 

Return to bug 17712