exception changes

This commit is contained in:
Yuri Kuznetsov
2022-06-23 14:03:04 +03:00
parent 2d12868849
commit 459de7be6f
25 changed files with 95 additions and 84 deletions
@@ -33,7 +33,8 @@ use Espo\Core\InjectableFactory;
use Espo\Core\Utils\Config;
use Espo\Core\Utils\Metadata;
use Espo\Core\Binding\Factory;
use Espo\Core\Exceptions\Error;
use RuntimeException;
class SubscriberFactory implements Factory
{
@@ -60,7 +61,7 @@ class SubscriberFactory implements Factory
$className = $this->metadata->get(['app', 'webSocket', 'messagers', $messager, 'subscriberClassName']);
if (!$className) {
throw new Error("No subscriber for messager '{$messager}'.");
throw new RuntimeException("No subscriber for messager '{$messager}'.");
}
return $this->injectableFactory->create($className);