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',