From ddf00328d41eab8b9d08a5388c5917da34b34b46 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 1 Dec 2022 13:08:46 +0000 Subject: [PATCH] Bug 32334: Add general exception FileNotFound Content-Type: text/plain; charset=utf-8 No test plan. Signed-off-by: Marcel de Rooy --- Koha/Exceptions.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Koha/Exceptions.pm b/Koha/Exceptions.pm index 00f45f661d..415518fff1 100644 --- a/Koha/Exceptions.pm +++ b/Koha/Exceptions.pm @@ -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', -- 2.30.2