1 | <?php |
||
27 | abstract class ErrorHandler extends Component |
||
28 | { |
||
29 | /** |
||
30 | * @var bool whether to discard any existing page output before error display. Defaults to true. |
||
31 | */ |
||
32 | public $discardExistingOutput = true; |
||
33 | /** |
||
34 | * @var int the size of the reserved memory. A portion of memory is pre-allocated so that |
||
35 | * when an out-of-memory issue occurs, the error handler is able to handle the error with |
||
36 | * the help of this reserved memory. If you set this value to be 0, no memory will be reserved. |
||
37 | * Defaults to 256KB. |
||
38 | */ |
||
39 | public $memoryReserveSize = 262144; |
||
40 | /** |
||
41 | * @var \Exception|null the exception that is being handled currently. |
||
42 | */ |
||
43 | public $exception; |
||
44 | |||
45 | /** |
||
46 | * @var string Used to reserve memory for fatal error handler. |
||
47 | */ |
||
48 | private $_memoryReserve; |
||
49 | |||
50 | |||
51 | /** |
||
52 | * Register this error handler |
||
53 | */ |
||
54 | public function register() |
||
65 | |||
66 | /** |
||
67 | * Unregisters this error handler by restoring the PHP error and exception handlers. |
||
68 | */ |
||
69 | public function unregister() |
||
74 | |||
75 | /** |
||
76 | * Handles uncaught PHP exceptions. |
||
77 | * |
||
78 | * This method is implemented as a PHP exception handler. |
||
79 | * |
||
80 | * @param \Exception $exception the exception that is not caught |
||
81 | */ |
||
82 | public function handleException($exception) |
||
119 | |||
120 | /** |
||
121 | * Handles exception thrown during exception processing in [[handleException()]]. |
||
122 | * @param \Exception|\Throwable $exception Exception that was thrown during main exception processing. |
||
123 | * @param \Exception $previousException Main exception processed in [[handleException()]]. |
||
124 | * @since 2.0.11 |
||
125 | */ |
||
126 | protected function handleFallbackExceptionMessage($exception, $previousException) { |
||
144 | |||
145 | /** |
||
146 | * Handles PHP execution errors such as warnings and notices. |
||
147 | * |
||
148 | * This method is used as a PHP error handler. It will simply raise an [[ErrorException]]. |
||
149 | * |
||
150 | * @param int $code the level of the error raised. |
||
151 | * @param string $message the error message. |
||
152 | * @param string $file the filename that the error was raised in. |
||
153 | * @param int $line the line number the error was raised at. |
||
154 | * @return bool whether the normal error handler continues. |
||
155 | * |
||
156 | * @throws ErrorException |
||
157 | */ |
||
158 | public function handleError($code, $message, $file, $line) |
||
182 | |||
183 | /** |
||
184 | * Handles fatal PHP errors |
||
185 | */ |
||
186 | public function handleFatalError() |
||
214 | |||
215 | /** |
||
216 | * Renders the exception. |
||
217 | * @param \Exception $exception the exception to be rendered. |
||
218 | */ |
||
219 | abstract protected function renderException($exception); |
||
220 | |||
221 | /** |
||
222 | * Logs the given exception |
||
223 | * @param \Exception $exception the exception to be logged |
||
224 | * @since 2.0.3 this method is now public. |
||
225 | */ |
||
226 | public function logException($exception) |
||
236 | |||
237 | /** |
||
238 | * Removes all output echoed before calling this method. |
||
239 | */ |
||
240 | public function clearOutput() |
||
249 | |||
250 | /** |
||
251 | * Converts an exception into a PHP error. |
||
252 | * |
||
253 | * This method can be used to convert exceptions inside of methods like `__toString()` |
||
254 | * to PHP errors because exceptions cannot be thrown inside of them. |
||
255 | * @param \Exception $exception the exception to convert to a PHP error. |
||
256 | */ |
||
257 | public static function convertExceptionToError($exception) |
||
261 | |||
262 | /** |
||
263 | * Converts an exception into a simple string. |
||
264 | * @param \Exception|\Error $exception the exception being converted |
||
265 | * @return string the string representation of the exception. |
||
266 | */ |
||
267 | public static function convertExceptionToString($exception) |
||
287 | } |
||
288 |
Scrutinizer analyzes your
composer.json
/composer.lock
file if available to determine the classes, and functions that are defined by your dependencies.It seems like the listed class was neither found in your dependencies, nor was it found in the analyzed files in your repository. If you are using some other form of dependency management, you might want to disable this analysis.