|
Lines 22-28
use Exception::Class (
Link Here
|
| 22 |
'Koha::Exceptions::Item::Transfer' => { |
22 |
'Koha::Exceptions::Item::Transfer' => { |
| 23 |
description => 'Something went wrong' |
23 |
description => 'Something went wrong' |
| 24 |
}, |
24 |
}, |
| 25 |
'Koha::Exceptions::Item::Transfer::Found' => { |
25 |
'Koha::Exceptions::Item::Transfer::InQueue' => { |
| 26 |
isa => 'Koha::Exceptions::Item::Transfer', |
26 |
isa => 'Koha::Exceptions::Item::Transfer', |
| 27 |
description => "Active item transfer already exists", |
27 |
description => "Active item transfer already exists", |
| 28 |
fields => ['transfer'] |
28 |
fields => ['transfer'] |
|
Lines 31-41
use Exception::Class (
Link Here
|
| 31 |
isa => 'Koha::Exceptions::Item::Transfer', |
31 |
isa => 'Koha::Exceptions::Item::Transfer', |
| 32 |
description => "Transfer not allowed" |
32 |
description => "Transfer not allowed" |
| 33 |
}, |
33 |
}, |
| 34 |
'Koha::Exceptions::Item::Transfer::Out' => { |
34 |
'Koha::Exceptions::Item::Transfer::OnLoan' => { |
| 35 |
isa => 'Koha::Exceptions::Item::Transfer', |
35 |
isa => 'Koha::Exceptions::Item::Transfer', |
| 36 |
description => "Transfer item is currently checked out" |
36 |
description => "Transfer item is currently checked out" |
| 37 |
}, |
37 |
}, |
| 38 |
'Koha::Exceptions::Item::Transfer::Transit' => { |
38 |
'Koha::Exceptions::Item::Transfer::InTransit' => { |
| 39 |
isa => 'Koha::Exceptions::Item::Transfer', |
39 |
isa => 'Koha::Exceptions::Item::Transfer', |
| 40 |
description => "Transfer item is currently in transit" |
40 |
description => "Transfer item is currently in transit" |
| 41 |
} |
41 |
} |
|
Lines 51-57
Koha::Exceptions::Item::Transfer - Base class for Transfer exceptions
Link Here
|
| 51 |
|
51 |
|
| 52 |
Generic Item::Transfer exception |
52 |
Generic Item::Transfer exception |
| 53 |
|
53 |
|
| 54 |
=head2 Koha::Exceptions::Item::Transfer::Found |
54 |
=head2 Koha::Exceptions::Item::Transfer::InQueue |
| 55 |
|
55 |
|
| 56 |
Exception to be used when an active item transfer prevents a transfer action. |
56 |
Exception to be used when an active item transfer prevents a transfer action. |
| 57 |
|
57 |
|
|
Lines 59-69
Exception to be used when an active item transfer prevents a transfer action.
Link Here
|
| 59 |
|
59 |
|
| 60 |
Exception to be used when transfer limits prevent a transfer action. |
60 |
Exception to be used when transfer limits prevent a transfer action. |
| 61 |
|
61 |
|
| 62 |
=head2 Koha::Exceptions::Item::Transfer::Out |
62 |
=head2 Koha::Exceptions::Item::Transfer::OnLoan |
| 63 |
|
63 |
|
| 64 |
Exception to be used when an active checkout prevents a transfer action. |
64 |
Exception to be used when an active checkout prevents a transfer action. |
| 65 |
|
65 |
|
| 66 |
=head2 Koha::Exceptions::Item::Transfer::Transit |
66 |
=head2 Koha::Exceptions::Item::Transfer::InTransit |
| 67 |
|
67 |
|
| 68 |
Exception to be used when an in transit transfer prevents a transfer action. |
68 |
Exception to be used when an in transit transfer prevents a transfer action. |
| 69 |
|
69 |
|