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
Exception JsTerminationException

Constructors

NameDescription
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.cs

Initializes a new instance of the JsTerminationException class.

public JsTerminationException()

JsTerminationException(JsTerminationReason, string)

JsTerminationException.cs

Initializes a new instance of the JsTerminationException class with a reason.

public JsTerminationException(JsTerminationReason reason, string message)
Parameters
reason JsTerminationReason
message string

JsTerminationException(string)

JsTerminationException.cs

Initializes a new instance of the JsTerminationException class with a message.

public JsTerminationException(string message)
Parameters
message string

JsTerminationException(string, Exception)

JsTerminationException.cs

Initializes a new instance of the JsTerminationException class with a message and an inner exception.

public JsTerminationException(string message, Exception innerException)
Parameters
message string
innerException Exception

Properties

NameDescription
ReasonGets why the script was stopped.

Gets why the script was stopped.

public JsTerminationReason Reason { get; }

Property value

JsTerminationReason