コード例 #1
0
 /** {@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'];
 }
コード例 #2
0
 /** {@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);
 }