Bug 2696: Fine payments should show what was paid for
[koha.git] / Koha / Exceptions / Object.pm
blob81156400c96436fc5db7a28e2a411ea50534d86e
1 package Koha::Exceptions::Object;
3 use Modern::Perl;
5 use Koha::Exceptions::Exception;
7 use Exception::Class (
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",