Bug 32030: Link external packages with agreements
[koha-ffzg.git] / Koha / Exceptions / Elasticsearch.pm
index 7ad8538..227fd65 100644 (file)
@@ -17,15 +17,17 @@ package Koha::Exceptions::Elasticsearch;
 
 use Modern::Perl;
 
+use Koha::Exception;
+
 use Exception::Class (
 
     'Koha::Exceptions::Elasticsearch' => {
-        description => 'Something went wrong!',
+        isa => 'Koha::Exception',
     },
     'Koha::Exceptions::Elasticsearch::BadResponse' => {
         isa         => 'Koha::Exceptions::Elasticsearch',
         description => 'Bad response received when submitting request to Elasticsearch',
-        fields      => [ 'error', 'details' ]
+        fields      => [ 'type', 'details' ]
     },
     'Koha::Exceptions::Elasticsearch::MARCFieldExprParseError' => {
         isa         => 'Koha::Exceptions::Elasticsearch',