Lines Matching defs:error
31 'error' => array('✗ ', Colors::C_RED, STDERR),
121 'Valid levels are: debug, info, notice, success, warning, error, critical, alert, emergency.',
183 * Exits the program on a fatal error
185 * @param \Exception|string $error either an exception or an error message
188 public function fatal($error, array $context = array())
191 if (is_object($error) && is_a($error, 'Exception')) {
192 /** @var Exception $error */
193 $this->logMessage('debug', get_class($error) . ' caught in ' . $error->getFile() . ':' . $error->getLine());
194 $this->logMessage('debug', $error->getTraceAsString());
195 $code = $error->getCode();
196 $error = $error->getMessage();
203 $this->logMessage('critical', $error, $context);