Go to the source code of this file.
◆ setCustomErrorHandler()
setCustomErrorHandler |
( |
| ) |
|
Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.Set custom error handler.
Definition at line 10 of file error_handler.php.
13 function ($errNo, $errStr, $errFile, $errLine) {
14 if (error_reporting()) {
17 E_WARNING =>
'Warning',
20 E_CORE_ERROR =>
'Core Error',
21 E_CORE_WARNING =>
'Core Warning',
22 E_COMPILE_ERROR =>
'Compile Error',
23 E_COMPILE_WARNING =>
'Compile Warning',
24 E_USER_ERROR =>
'User Error',
25 E_USER_WARNING =>
'User Warning',
26 E_USER_NOTICE =>
'User Notice',
28 E_RECOVERABLE_ERROR =>
'Recoverable Error',
29 E_DEPRECATED =>
'Deprecated',
30 E_USER_DEPRECATED =>
'User Deprecated',
33 $errName = isset($errorNames[$errNo]) ? $errorNames[$errNo] :
"";
35 throw new \PHPUnit\Framework\Exception(
36 sprintf(
"%s: %s in %s:%s.", $errName, $errStr, $errFile, $errLine),