1 package Koha::Exceptions;
9 'Koha::Exceptions::BadParameter' => {
10 isa => 'Koha::Exception',
11 description => 'A bad parameter was given',
12 fields => ['parameter'],
14 'Koha::Exceptions::DuplicateObject' => {
15 isa => 'Koha::Exception',
16 description => 'Same object already exists',
18 'Koha::Exceptions::ObjectNotFound' => {
19 isa => 'Koha::Exception',
20 description => 'The required object doesn\'t exist',
22 'Koha::Exceptions::ObjectNotCreated' => {
23 isa => 'Koha::Exception',
24 description => 'The object have not been created',
26 'Koha::Exceptions::CannotDeleteDefault' => {
27 isa => 'Koha::Exception',
28 description => 'The default value cannot be deleted'
30 'Koha::Exceptions::MissingParameter' => {
31 isa => 'Koha::Exception',
32 description => 'A required parameter is missing'
34 'Koha::Exceptions::ParameterTooHigh' => {
35 isa => 'Koha::Exception',
36 description => 'A passed parameter value is too high'
38 'Koha::Exceptions::NoChanges' => {
39 isa => 'Koha::Exception',
40 description => 'No changes were made',
42 'Koha::Exceptions::WrongParameter' => {
43 isa => 'Koha::Exception',
44 description => 'One or more parameters are wrong',
46 'Koha::Exceptions::NoPermission' => {
47 isa => 'Koha::Exception',
48 description => 'You do not have permission for this action',
50 'Koha::Exceptions::CannotAddLibraryLimit' => {
51 isa => 'Koha::Exception',
52 description => 'General problem adding a library limit'
54 'Koha::Exceptions::UnderMaintenance' => {
55 isa => 'Koha::Exception',
56 description => 'Koha is under maintenance.'