Table of Contents

TModuleExceptionAction Enumeration

Defines what the server does after an exception is handled by the exception event.

Remarks

SendError sends an HTTP response with the specified status code and a JSON body holding the error code and error message. This is the default action. RaiseException re-raises the original exception, giving Sparkle middleware, and ultimately the Sparkle dispatcher, a chance to handle it. Ignore makes XData finish the request silently, so the event handler can send a custom HTTP response itself.

Syntax

Unit: XData.Module.Events

Members

Name Value Description
SendError 0
RaiseException 1
Ignore 2