1 package Koha
::Exceptions
::Object
;
5 use Koha
::Exceptions
::Exception
;
8 'Koha::Exceptions::Object' => {
9 isa
=> 'Koha::Exceptions::Exception',
11 'Koha::Exceptions::Object::DuplicateID' => {
12 isa
=> 'Koha::Exceptions::Object',
13 description
=> "Duplicate ID passed",
14 fields
=> ['duplicate_id']
16 'Koha::Exceptions::Object::FKConstraint' => {
17 isa
=> 'Koha::Exceptions::Object',
18 description
=> "Foreign key constraint broken",
19 fields
=> ['broken_fk', 'value'],
21 'Koha::Exceptions::Object::MethodNotFound' => {
22 isa
=> 'Koha::Exceptions::Object',
23 description
=> "Invalid method",
25 'Koha::Exceptions::Object::PropertyNotFound' => {
26 isa
=> 'Koha::Exceptions::Object',
27 description
=> "Invalid property",
29 'Koha::Exceptions::Object::MethodNotCoveredByTests' => {
30 isa
=> 'Koha::Exceptions::Object',
31 description
=> "Method not covered by tests",