Bug 25757: Add Koha::Item::Transfer->transit method
[koha.git] / Koha / Exceptions / Item / Transfer.pm
1 package Koha::Exceptions::Item::Transfer;
2
3 use Modern::Perl;
4
5 use Exception::Class (
6
7     'Koha::Exceptions::Item::Transfer' => {
8         description => 'Something went wrong'
9     },
10     'Koha::Exceptions::Item::Transfer::Found' => {
11         isa => 'Koha::Exceptions::Item::Transfer',
12         description => "Active item transfer already exists",
13         fields => ['transfer']
14     },
15     'Koha::Exceptions::Item::Transfer::Limit' => {
16         isa => 'Koha::Exceptions::Item::Transfer',
17         description => "Transfer not allowed"
18     },
19     'Koha::Exceptions::Item::Transfer::Out' => {
20         isa => 'Koha::Exceptions::Item::Transfer',
21         description => "Transfer item is currently checked out"
22     }
23
24 );
25
26 1;