Bug 20073: Remove perlcritic error
[koha.git] / Koha / Exceptions / Object.pm
1 package Koha::Exceptions::Object;
2
3 use Modern::Perl;
4
5 use Koha::Exceptions::Exception;
6
7 use Exception::Class (
8     'Koha::Exceptions::Object' => {
9         isa         => 'Koha::Exceptions::Exception',
10     },
11     'Koha::Exceptions::Object::DuplicateID' => {
12         isa         => 'Koha::Exceptions::Object',
13         description => "Duplicate ID passed",
14         fields      =>  ['duplicate_id']
15     },
16     'Koha::Exceptions::Object::FKConstraint' => {
17         isa         => 'Koha::Exceptions::Object',
18         description => "Foreign key constraint broken",
19         fields      =>  ['broken_fk', 'value'],
20     },
21     'Koha::Exceptions::Object::MethodNotFound' => {
22         isa => 'Koha::Exceptions::Object',
23         description => "Invalid method",
24     },
25     'Koha::Exceptions::Object::PropertyNotFound' => {
26         isa => 'Koha::Exceptions::Object',
27         description => "Invalid property",
28     },
29     'Koha::Exceptions::Object::MethodNotCoveredByTests' => {
30         isa => 'Koha::Exceptions::Object',
31         description => "Method not covered by tests",
32     },
33 );
34
35 1;