Bug 32030: Link external packages with agreements
[koha-ffzg.git] / Koha / Exceptions / Library.pm
index 1aea6ad..9009254 100644 (file)
@@ -2,15 +2,17 @@ package Koha::Exceptions::Library;
 
 use Modern::Perl;
 
+use Koha::Exception;
+
 use Exception::Class (
 
-    'Koha::Exceptions::Library' => {
-        description => 'Something went wrong!',
+    'Koha::Exceptions::Library::Exception' => {
+        isa => 'Koha::Exception',
     },
-    'Koha::Exceptions::Library::BranchcodeNotFound' => {
-        isa => 'Koha::Exceptions::Library',
-        description => "Library does not exist",
-        fields => ["branchcode"],
+
+    'Koha::Exceptions::Library::NotFound' => {
+        isa => 'Koha::Exceptions::Library::Exception',
+        description => 'Library not found',
     },
 );