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