Table of Contents

TModuleExceptionArgs.Create Constructor

Creates the event arguments for a raised exception.

Syntax

Unit: XData.Module.Events

constructor TModuleExceptionArgs.Create(AHandler: TXDataBaseRequestHandler; const AException: Exception; AStatusCode: Integer; const AErrorCode: string; const AErrorMessage: string; AAction: TModuleExceptionAction; AErrors: TList<TErrorInfo>);

Parameters

<-> Parameter Type Description
AHandler TXDataBaseRequest​Handler The request handler processing the request.
const AException Exception The exception that was raised.
AStatusCode Integer The HTTP status code XData would send for this exception.
const AErrorCode string The error code XData would send for this exception.
const AErrorMessage string The error message XData would send for this exception.
AAction TModuleException​Action The action XData would perform for this exception.
AErrors TList<TErrorInfo> The list of detailed errors associated with the exception.

See also