Sign in Join
FPDoc Onlineexperiment

TOnShowRequestException procedure type

In unit CustWeb

Event type for custom exception handling in HTTP requests

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.