D7 API documentation
What's New
Modules
Main module in old core
ExceptionHandler constructor
handleAssertion
handleError
handleException
handleFatalError
initialize
setAssertionErrorType
setAssertionThrowsException
setDebugMode
setExceptionErrorsTypes
setHandledErrorsTypes
setHandlerLog
setHandlerOutput
setIgnoreSilence
setOverflowMemoryCatching
writeToLog
initialize
void public \Bitrix\Main\Diag\ExceptionHandler::initialize( callable $exceptionHandlerOutputCreator, callable|null $exceptionHandlerLogCreator = null );
Non-static method initializes error processing.
Must be called after creating an object.
Parameters
Parameter | Description | Version |
---|---|---|
$exceptionHandlerOutputCreator | Function for returning an object for error message formatting. | |
$exceptionHandlerLogCreator | Function for returning an object for writing into log. |
Example
© «Bitrix24», 2001-2024
Up