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

(-)a/Koha/Exceptions.pm (+9 lines)
Lines 8-13 use Exception::Class ( Link Here
8
    'Koha::Exceptions::Exception' => {
8
    'Koha::Exceptions::Exception' => {
9
        description => 'Something went wrong!',
9
        description => 'Something went wrong!',
10
    },
10
    },
11
    'Koha::Exceptions::BadParameter' => {
12
        isa => 'Koha::Exceptions::Exception',
13
        description => 'Bad parameter was given',
14
        fields => ["parameter"],
15
    },
11
    'Koha::Exceptions::DuplicateObject' => {
16
    'Koha::Exceptions::DuplicateObject' => {
12
        isa => 'Koha::Exceptions::Exception',
17
        isa => 'Koha::Exceptions::Exception',
13
        description => 'Same object already exists',
18
        description => 'Same object already exists',
Lines 32-37 use Exception::Class ( Link Here
32
        isa => 'Koha::Exceptions::Exception',
37
        isa => 'Koha::Exceptions::Exception',
33
        description => 'General problem adding a library limit'
38
        description => 'General problem adding a library limit'
34
    },
39
    },
40
    'Koha::Exceptions::UnderMaintenance' => {
41
        isa => 'Koha::Exceptions::Exception',
42
        description => 'Koha is under maintenance.'
43
    },
35
    # Virtualshelves exceptions
44
    # Virtualshelves exceptions
36
    'Koha::Exceptions::Virtualshelves::DuplicateObject' => {
45
    'Koha::Exceptions::Virtualshelves::DuplicateObject' => {
37
        isa => 'Koha::Exceptions::DuplicateObject',
46
        isa => 'Koha::Exceptions::DuplicateObject',
(-)a/Koha/Exceptions/Authentication.pm (+21 lines)
Line 0 Link Here
1
package Koha::Exceptions::Authentication;
2
3
use Modern::Perl;
4
5
use Exception::Class (
6
7
    'Koha::Exceptions::Authentication' => {
8
        description => 'Something went wrong!',
9
    },
10
    'Koha::Exceptions::Authentication::Required' => {
11
        isa => 'Koha::Exceptions::Authentication',
12
        description => 'Authentication required'
13
    },
14
    'Koha::Exceptions::Authentication::SessionExpired' => {
15
        isa => 'Koha::Exceptions::Authentication',
16
        description => 'Session has been expired',
17
    },
18
19
);
20
21
1;
(-)a/Koha/Exceptions/Authorization.pm (-1 / +18 lines)
Line 0 Link Here
0
- 
1
package Koha::Exceptions::Authorization;
2
3
use Modern::Perl;
4
5
use Exception::Class (
6
7
    'Koha::Exceptions::Authorization' => {
8
        description => 'Something went wrong!',
9
    },
10
    'Koha::Exceptions::Authorization::Unauthorized' => {
11
        isa => 'Koha::Exceptions::Authorization',
12
        description => 'Unauthorized',
13
        fields => ['required_permissions']
14
    },
15
16
);
17
18
1;

Return to bug 18137