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::FileNotFound' => {
19 isa => 'Koha::Exception',
20 description => 'File not found',
21 fields => ['filename'],
23 'Koha::Exceptions::InvalidStatus' => {
24 isa => 'Koha::Exception',
25 description => 'The current status is not valid in context',
26 fields => ['invalid_status'],
28 'Koha::Exceptions::ObjectNotFound' => {
29 isa => 'Koha::Exception',
30 description => 'The required object doesn\'t exist',
32 'Koha::Exceptions::PayloadTooLarge' => {
33 isa => 'Koha::Exception',
34 description => 'Request entity is larger than limits defined by server',
36 'Koha::Exceptions::ObjectNotCreated' => {
37 isa => 'Koha::Exception',
38 description => 'The object have not been created',
40 'Koha::Exceptions::CannotDeleteDefault' => {
41 isa => 'Koha::Exception',
42 description => 'The default value cannot be deleted'
44 'Koha::Exceptions::CannotDeleteSystem' => {
45 isa => 'Koha::Exception',
46 description => 'The system value cannot be deleted'
48 'Koha::Exceptions::MissingParameter' => {
49 isa => 'Koha::Exception',
50 description => 'A required parameter is missing',
51 fields => ['parameter'],
53 'Koha::Exceptions::TooManyParameters' => {
54 isa => 'Koha::Exception',
55 description => 'Too many parameters given',
57 'Koha::Exceptions::ParameterTooHigh' => {
58 isa => 'Koha::Exception',
59 description => 'A passed parameter value is too high'
61 'Koha::Exceptions::NoChanges' => {
62 isa => 'Koha::Exception',
63 description => 'No changes were made',
65 'Koha::Exceptions::WrongParameter' => {
66 isa => 'Koha::Exception',
67 description => 'Parameter has wrong value or type',
68 fields => ['name', 'value', 'type'],
70 'Koha::Exceptions::NoPermission' => {
71 isa => 'Koha::Exception',
72 description => 'You do not have permission for this action',
74 'Koha::Exceptions::CannotAddLibraryLimit' => {
75 isa => 'Koha::Exception',
76 description => 'General problem adding a library limit'
78 'Koha::Exceptions::UnderMaintenance' => {
79 isa => 'Koha::Exception',
80 description => 'Koha is under maintenance.'