Skip to content

Commit 03e7f43

Browse files
authored
To capture any throwable exceptions
1 parent 2e45de7 commit 03e7f43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/NewRelicReporting/Model/NewRelicWrapper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
namespace Magento\NewRelicReporting\Model;
77

8-
use Exception;
8+
use Throwable;
99

1010
/**
1111
* Wrapper for New Relic functions
@@ -33,10 +33,10 @@ public function addCustomParameter($param, $value)
3333
/**
3434
* Wrapper for 'newrelic_notice_error' function
3535
*
36-
* @param Exception $exception
36+
* @param Throwable $exception
3737
* @return void
3838
*/
39-
public function reportError(Exception $exception)
39+
public function reportError(Throwable $exception)
4040
{
4141
if ($this->isExtensionInstalled()) {
4242
newrelic_notice_error($exception->getMessage(), $exception);

0 commit comments

Comments
 (0)