|
Lines 3-11
package Koha::Exceptions::Object;
Link Here
|
| 3 |
use Modern::Perl; |
3 |
use Modern::Perl; |
| 4 |
|
4 |
|
| 5 |
use Exception::Class ( |
5 |
use Exception::Class ( |
| 6 |
|
|
|
| 7 |
'Koha::Exceptions::Object' => { |
6 |
'Koha::Exceptions::Object' => { |
| 8 |
description => 'Something went wrong!', |
7 |
isa => 'Koha::Exceptions::Exception', |
| 9 |
}, |
8 |
}, |
| 10 |
'Koha::Exceptions::Object::DuplicateID' => { |
9 |
'Koha::Exceptions::Object::DuplicateID' => { |
| 11 |
isa => 'Koha::Exceptions::Object', |
10 |
isa => 'Koha::Exceptions::Object', |
|
Lines 15-21
use Exception::Class (
Link Here
|
| 15 |
'Koha::Exceptions::Object::FKConstraint' => { |
14 |
'Koha::Exceptions::Object::FKConstraint' => { |
| 16 |
isa => 'Koha::Exceptions::Object', |
15 |
isa => 'Koha::Exceptions::Object', |
| 17 |
description => "Foreign key constraint broken", |
16 |
description => "Foreign key constraint broken", |
| 18 |
fields => ['broken_fk'] |
17 |
fields => ['broken_fk', 'value'], |
| 19 |
}, |
18 |
}, |
| 20 |
'Koha::Exceptions::Object::MethodNotFound' => { |
19 |
'Koha::Exceptions::Object::MethodNotFound' => { |
| 21 |
isa => 'Koha::Exceptions::Object', |
20 |
isa => 'Koha::Exceptions::Object', |