Bug 32334: Add general exception FileNotFound

No test plan.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Marcel de Rooy 2022-12-01 13:08:46 +00:00 committed by Tomas Cohen Arazi
parent dc16d53d57
commit d9aaf9f986
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -15,6 +15,11 @@ use Exception::Class (
isa => 'Koha::Exception',
description => 'Same object already exists',
},
'Koha::Exceptions::FileNotFound' => {
isa => 'Koha::Exception',
description => 'File not found',
fields => ['filename'],
},
'Koha::Exceptions::InvalidStatus' => {
isa => 'Koha::Exception',
description => 'The current status is not valid in context',