Unit 'CustWeb' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

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

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

TWebHandler.OnShowRequestException

  

Event for custom exception handling during request processing


Documentation generated on: Jan 27 2026