diff --git a/module/VuFindSearch/src/VuFindSearch/Service.php b/module/VuFindSearch/src/VuFindSearch/Service.php index 99bd058f21804d287af1aaa50112c7fe6bdb519b..e4d2dc11d04d02e98dc77c8761df039fddbdba7a 100644 --- a/module/VuFindSearch/src/VuFindSearch/Service.php +++ b/module/VuFindSearch/src/VuFindSearch/Service.php @@ -267,6 +267,19 @@ class Service return $this->backends[$backend]; } + /** + * Trigger the error event. + * + * @param BackendException $exception Error exception + * @param array $args Event arguments + * + * @return void + */ + public function triggerError(BackendException $exception, $args) + { + $this->getEventManager()->trigger('error', $exception, $args); + } + /** * Trigger the pre event. *