ScriptDiedException is thrown to simulate PHP's
exit constructs. This is a well-known exception that is thrown by design and can thus be ignored.
|Status||Original argument passed to the
The exception is thrown as a response to the
exit constructs. The reason is that this is the only way how to terminate the program at the current location without any unnnecesary overhead.
Since it is a CLR exception, it is always handled by the .NET debugger and by the eventual
catch constructs. This can be used in a C# application to handle
die in PHP code without terminating the request.
catch constructs are translated into corresponding CLR code respecting
ScriptDiedException and re-throwing it away. By default, the request handler catches the exception in order to simulate PHP's
die behavior of outputing the status message.