From 775892a09f396d69029508b2a693fff1276334c7 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 --- Koha/Exceptions.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Koha/Exceptions.pm b/Koha/Exceptions.pm index 00f45f661de..415518fff19 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.25.1