Skip to content

TOnShowRequestException

Event type for custom exception handling in HTTP requests

Declaration

Source position: custweb.pp line 38

type
  TOnShowRequestException = procedure(AResponse: TResponse; 
                                    AnException: Exception; 
                                    var handled: Boolean);

Arguments

Name Description
AResponse The HTTP response object for sending error response
AnException The exception that occurred during request processing
handled Set to True if the exception was handled by the event

Description

Event handler type called when an exception occurs during HTTP request processing. Allows custom handling of exceptions before the default error response is generated.

See also

Name Description
TWebHandler.OnShowRequestException Event for custom exception handling during request processing