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', |