Bug 16371: Add needed Koha::Exception
authorEmmi Takkinen <emmi.takkinen@outlook.com>
Tue, 7 Apr 2020 08:53:17 +0000 (11:53 +0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 08:15:33 +0000 (10:15 +0200)
Add Koha::Exception needed in this bug.

Sponsored-by: Koha-Suomi Oy

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha/Exceptions.pm

index cf56b22..c811b97 100644 (file)
@@ -50,6 +50,10 @@ use Exception::Class (
         isa => 'Koha::Exceptions::Exception',
         description => 'Koha is under maintenance.'
     },
+    'Koha::Exceptions::UnknownProgramState' => {
+        isa => 'Koha::Exceptions::Exception',
+        description => 'The running program has done something terribly unpredicatable',
+    },
     # Virtualshelves exceptions
     'Koha::Exceptions::Virtualshelves::DuplicateObject' => {
         isa => 'Koha::Exceptions::DuplicateObject',