編集

次の方法で共有


JScriptException Constructors

Definition

Initializes a new instance of the JScriptException class.

Overloads

JScriptException()

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the JScriptException class.

JScriptException(JSError)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the JScriptException class, using the specified JSError.

JScriptException(String)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the JScriptException class, using the specified error message.

JScriptException(SerializationInfo, StreamingContext)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the JScriptException class, using the specified serialized data.

JScriptException(String, Exception)

This API supports the product infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the JScriptException class, using the specified error message and a reference to the inner exception that is the cause of this exception.

JScriptException()

Initializes a new instance of the JScriptException class.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 JScriptException();
public JScriptException ();
Public Sub New ()

See also

Applies to

JScriptException(JSError)

Initializes a new instance of the JScriptException class, using the specified JSError.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 JScriptException(Microsoft::JScript::JSError errorNumber);
public JScriptException (Microsoft.JScript.JSError errorNumber);
new Microsoft.JScript.JScriptException : Microsoft.JScript.JSError -> Microsoft.JScript.JScriptException
Public Sub New (errorNumber As JSError)

Parameters

errorNumber
JSError

One of the enumeration values. The value specifies the error.

See also

Applies to

JScriptException(String)

Initializes a new instance of the JScriptException class, using the specified error message.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 JScriptException(System::String ^ m);
public JScriptException (string m);
new Microsoft.JScript.JScriptException : string -> Microsoft.JScript.JScriptException
Public Sub New (m As String)

Parameters

m
String

The message that describes the error.

See also

Applies to

JScriptException(SerializationInfo, StreamingContext)

Initializes a new instance of the JScriptException class, using the specified serialized data.

This API supports the product infrastructure and is not intended to be used directly from your code.

protected:
 JScriptException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected JScriptException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.JScript.JScriptException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.JScript.JScriptException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The serialized object data about the exception that is being thrown.

context
StreamingContext

Contextual information about the source or destination.

See also

Applies to

JScriptException(String, Exception)

Initializes a new instance of the JScriptException class, using the specified error message and a reference to the inner exception that is the cause of this exception.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 JScriptException(System::String ^ m, Exception ^ e);
public JScriptException (string m, Exception e);
new Microsoft.JScript.JScriptException : string * Exception -> Microsoft.JScript.JScriptException
Public Sub New (m As String, e As Exception)

Parameters

m
String

The message that describes the error.

e
Exception

The exception that is the cause of the current exception.

See also

Applies to