JsTerminationException Class
The exception thrown when the engine stops a script: a limit is exceeded or the execution is canceled. The scripts cannot catch it (the catch and finally blocks do not run).
public sealed class JsTerminationException : Exception- Inheritance
ExceptionJsTerminationException
Constructors
| Name | Description |
|---|---|
| JsTerminationException() | Initializes a new instance of the JsTerminationException class. |
| JsTerminationException(JsTerminationReason, string) | Initializes a new instance of the JsTerminationException class with a reason. |
| JsTerminationException(string) | Initializes a new instance of the JsTerminationException class with a message. |
| JsTerminationException(string, Exception) | Initializes a new instance of the JsTerminationException class with a message and an inner exception. |
JsTerminationException overloads
JsTerminationException()
JsTerminationException.csInitializes a new instance of the JsTerminationException class.
public JsTerminationException()JsTerminationException(JsTerminationReason, string)
JsTerminationException.csInitializes a new instance of the JsTerminationException class with a reason.
public JsTerminationException(JsTerminationReason reason, string message)Parameters
reasonJsTerminationReasonmessagestring
JsTerminationException(string)
JsTerminationException.csInitializes a new instance of the JsTerminationException class with a message.
public JsTerminationException(string message)Parameters
messagestring
JsTerminationException(string, Exception)
JsTerminationException.csInitializes a new instance of the JsTerminationException class with a message and an inner exception.
Properties
| Name | Description |
|---|---|
| Reason | Gets why the script was stopped. |