Changeset View
Changeset View
Standalone View
Standalone View
src/error/PhutilErrorHandler.php
| Show All 23 Lines | |||||
| * | * | ||||
| * Phabricator uses this class to drive the DarkConsole "Error Log" plugin. | * Phabricator uses this class to drive the DarkConsole "Error Log" plugin. | ||||
| * | * | ||||
| * @task config Configuring Error Dispatch | * @task config Configuring Error Dispatch | ||||
| * @task exutil Exception Utilities | * @task exutil Exception Utilities | ||||
| * @task trap Error Traps | * @task trap Error Traps | ||||
| * @task internal Internals | * @task internal Internals | ||||
| */ | */ | ||||
| final class PhutilErrorHandler { | final class PhutilErrorHandler extends Phobject { | ||||
| private static $errorListener = null; | private static $errorListener = null; | ||||
| private static $initialized = false; | private static $initialized = false; | ||||
| private static $traps = array(); | private static $traps = array(); | ||||
| const EXCEPTION = 'exception'; | const EXCEPTION = 'exception'; | ||||
| const ERROR = 'error'; | const ERROR = 'error'; | ||||
| const PHLOG = 'phlog'; | const PHLOG = 'phlog'; | ||||
| ▲ Show 20 Lines • Show All 556 Lines • Show Last 20 Lines | |||||