From d9aaf9f986778cf019bda89c550da7c734291dd8 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 No test plan. Signed-off-by: Marcel de Rooy Signed-off-by: David Nind Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- 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.39.5