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