'use strict'; class ErrorFromName { static supportedForProcessing: boolean = false; name: string; message: string; constructor(name: string, message?: string) { /// /// /// Creates an Error object with the specified name and message properties. /// /// The name of this error. The name is meant to be consumed programmatically and should not be localized. /// The message for this error. The message is meant to be consumed by humans and should be localized. /// Error instance with .name and .message properties populated /// this.name = name; this.message = message || name; } } // import _Base = require('./_Base'); // _Base.Namespace.define("WinJS", { // // ErrorFromName establishes a simple pattern for returning error codes. // // // ErrorFromName: ErrorFromName // }); export = ErrorFromName;