Bug 19420: Improve display of errors from failure of uploading file during stage...
[koha.git] / Koha / Exceptions / Object.pm
1 package Koha::Exceptions::Object;
2
3 use Modern::Perl;
4
5 use Exception::Class (
6
7     'Koha::Exceptions::Object' => {
8         description => 'Something went wrong!',
9     },
10     'Koha::Exceptions::Object::MethodNotFound' => {
11         isa => 'Koha::Exceptions::Object',
12         description => "Invalid method",
13     },
14     'Koha::Exceptions::Object::PropertyNotFound' => {
15         isa => 'Koha::Exceptions::Object',
16         description => "Invalid property",
17     },
18     'Koha::Exceptions::Object::MethodNotCoveredByTests' => {
19         isa => 'Koha::Exceptions::Object',
20         description => "Method not covered by tests",
21     },
22 );
23
24 1;