Class TCallbackErrorHandler
TCallbackErrorHandler class.
Captures errors and exceptions and send them back during callback response. When the application is in debug mode, the error and exception stack trace are shown. A TJavascriptLogger must be present on the client-side to view the error stack trace.
| Method Summary |
|
protected
void
|
Displays the exceptions to the client-side TJavascriptLogger.
|
| Methods Inherited From TComponent |
|
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
| Method Details |
displayException
| protected void displayException |
(Exception $exception ) |
Displays the exceptions to the client-side TJavascriptLogger.
A HTTP 500 status code is sent and the stack trace is sent as JSON encoded.
| Input |
| Exception | $exception | exception details. |
| Output |
| Exception |
|
|