C# Class MsieJavaScriptEngine.JsRt.Edge.EdgeJsErrorHelpers

“Edge” error helpers
Datei anzeigen Open project: Taritsyn/MsieJavaScriptEngine Class Usage Examples

Public Methods

Method Description
CreateError ( string message ) : EdgeJsValue

Creates a new JavaScript error object

Requires an active script context.

CreateRangeError ( string message ) : EdgeJsValue

Creates a new JavaScript RangeError error object

Requires an active script context.

CreateReferenceError ( string message ) : EdgeJsValue

Creates a new JavaScript ReferenceError error object

Requires an active script context.

CreateSyntaxError ( string message ) : EdgeJsValue

Creates a new JavaScript SyntaxError error object

Requires an active script context.

CreateTypeError ( string message ) : EdgeJsValue

Creates a new JavaScript TypeError error object

Requires an active script context.

CreateUriError ( string message ) : EdgeJsValue

Creates a new JavaScript URIError error object

Requires an active script context.

SetException ( EdgeJsValue exception ) : void

Sets a exception

Requires an active script context.

ThrowIfError ( JsErrorCode error ) : void

Throws if a native method returns an error code

Method Details

CreateError() public static method

Creates a new JavaScript error object
Requires an active script context.
public static CreateError ( string message ) : EdgeJsValue
message string The message that describes the error
return EdgeJsValue

CreateRangeError() public static method

Creates a new JavaScript RangeError error object
Requires an active script context.
public static CreateRangeError ( string message ) : EdgeJsValue
message string The message that describes the error
return EdgeJsValue

CreateReferenceError() public static method

Creates a new JavaScript ReferenceError error object
Requires an active script context.
public static CreateReferenceError ( string message ) : EdgeJsValue
message string The message that describes the error
return EdgeJsValue

CreateSyntaxError() public static method

Creates a new JavaScript SyntaxError error object
Requires an active script context.
public static CreateSyntaxError ( string message ) : EdgeJsValue
message string The message that describes the error
return EdgeJsValue

CreateTypeError() public static method

Creates a new JavaScript TypeError error object
Requires an active script context.
public static CreateTypeError ( string message ) : EdgeJsValue
message string The message that describes the error
return EdgeJsValue

CreateUriError() public static method

Creates a new JavaScript URIError error object
Requires an active script context.
public static CreateUriError ( string message ) : EdgeJsValue
message string The message that describes the error
return EdgeJsValue

SetException() public static method

Sets a exception
Requires an active script context.
public static SetException ( EdgeJsValue exception ) : void
exception EdgeJsValue The error object
return void

ThrowIfError() public static method

Throws if a native method returns an error code
public static ThrowIfError ( JsErrorCode error ) : void
error JsErrorCode The error
return void