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::InvalidStatus' => {
19 isa => 'Koha::Exception',
20 description => 'The current status is not valid in context',
21 fields => ['invalid_status'],
23 'Koha::Exceptions::ObjectNotFound' => {
24 isa => 'Koha::Exception',
25 description => 'The required object doesn\'t exist',
27 'Koha::Exceptions::ObjectNotCreated' => {
28 isa => 'Koha::Exception',
29 description => 'The object have not been created',
31 'Koha::Exceptions::CannotDeleteDefault' => {
32 isa => 'Koha::Exception',
33 description => 'The default value cannot be deleted'
35 'Koha::Exceptions::CannotDeleteSystem' => {
36 isa => 'Koha::Exception',
37 description => 'The system value cannot be deleted'
39 'Koha::Exceptions::MissingParameter' => {
40 isa => 'Koha::Exception',
41 description => 'A required parameter is missing'
43 'Koha::Exceptions::ParameterTooHigh' => {
44 isa => 'Koha::Exception',
45 description => 'A passed parameter value is too high'
47 'Koha::Exceptions::NoChanges' => {
48 isa => 'Koha::Exception',
49 description => 'No changes were made',
51 'Koha::Exceptions::WrongParameter' => {
52 isa => 'Koha::Exception',
53 description => 'One or more parameters are wrong',
55 'Koha::Exceptions::NoPermission' => {
56 isa => 'Koha::Exception',
57 description => 'You do not have permission for this action',
59 'Koha::Exceptions::CannotAddLibraryLimit' => {
60 isa => 'Koha::Exception',
61 description => 'General problem adding a library limit'
63 'Koha::Exceptions::UnderMaintenance' => {
64 isa => 'Koha::Exception',
65 description => 'Koha is under maintenance.'