ErrorFromName constructor
Collapse the table of content
Expand the table of content

WinJS.ErrorFromName constructor

Applies to Windows and Windows Phone

Creates an Error object with the specified name and message properties.

Syntax


var errorFromName = new WinJS.ErrorFromName(name, message);

Parameters

name

Type: String

The name of this error. The name is meant to be consumed programmatically and should not be localized.

message

Type: String

The message for this error. The message is meant to be consumed by humans and should be localized.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS

See also

ErrorFromName

 

 

Show:
© 2017 Microsoft