Share via


WinJS.ErrorFromName constructor

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