/** {@inheritdoc} */
 public function handleError(ErrorException $error, Metadata $metadata)
 {
     $metadataArr = $this->prepareForSending($metadata);
     $this->setContext($error->getContext());
     $this->notifyError(ErrorException::$phpErrors[$error->getCode()], $error->getMessage(), $metadataArr, self::$SEVERITY_MAP[$metadata->getSeverity()]);
     return $metadataArr['grouping_hash'];
 }
Exemple #2
0
 /** {@inheritdoc} */
 public function handleError(ErrorException $error, Metadata $metadata)
 {
     $options = $this->prepareOptions($metadata);
     $options['extra']['context'] = $error->getContext();
     $eventId = $this->captureException($error, $options);
     $eventId = $this->getIdent($eventId);
     return $eventId;
 }
 /** {@inheritdoc} */
 public function handleError(ErrorException $error, Metadata $metadata = null)
 {
     $metadata = $this->addDefaultCategory($metadata);
     $this->errorHandler->handleError($error->getCode(), $error->getMessage(), $error->getFile(), $error->getLine(), $error->getContext(), $metadata);
 }
Exemple #4
0
 /** {@inheritdoc} */
 public function handleError(ErrorException $error, Metadata $metadata = null)
 {
     $this->errorHandled = true;
     $this->context = $error->getContext();
 }