1 package Koha::Exceptions::Object;
6 'Koha::Exceptions::Object' => {
7 isa => 'Koha::Exceptions::Exception',
9 'Koha::Exceptions::Object::DuplicateID' => {
10 isa => 'Koha::Exceptions::Object',
11 description => "Duplicate ID passed",
12 fields => ['duplicate_id']
14 'Koha::Exceptions::Object::FKConstraint' => {
15 isa => 'Koha::Exceptions::Object',
16 description => "Foreign key constraint broken",
17 fields => ['broken_fk', 'value'],
19 'Koha::Exceptions::Object::MethodNotFound' => {
20 isa => 'Koha::Exceptions::Object',
21 description => "Invalid method",
23 'Koha::Exceptions::Object::PropertyNotFound' => {
24 isa => 'Koha::Exceptions::Object',
25 description => "Invalid property",
27 'Koha::Exceptions::Object::MethodNotCoveredByTests' => {
28 isa => 'Koha::Exceptions::Object',
29 description => "Method not covered by tests",