Lines Matching defs:error
35 * @param string $error Error message from elasticsearch
37 public function __construct(int $code, string $error)
39 $this->_parseError($error);
40 parent::__construct($error, $code);
70 * Parse error message from elasticsearch.
72 * @param string $error Error message
74 protected function _parseError(string $error): void
76 $errors = \explode(']; nested: ', $error);
91 * Extract exception name from error response.
95 protected function _extractException(string $error)
97 if (\preg_match('/^(\w+)\[.*\]/', $error, $matches)) {