{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method 'create(message, errorInfo)'
Method: create(message, errorInfo)
Method Full Name:     Error$create(message, errorInfo)
Class: Error
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Error.create = function Error$create(message, errorInfo) {
2     /// <summary locid="M:J#Error.create" />
3     /// <param name="message" type="String" optional="true" mayBeNull="true"></param>
4     /// <param name="errorInfo" optional="true" mayBeNull="true"></param>
5     /// <returns type="Error"></returns>
6     var e = Function._validateParams(arguments, [
7     {name: "message", type: String, mayBeNull: true, optional: true},
8     {name: "errorInfo", mayBeNull: true, optional: true}
9     ]);
10    if (e) throw e;
11    var e = new Error(message);
12    e.message = message;
13    if (errorInfo) {
14      for (var v in errorInfo) {
15        e[v] = errorInfo[v];
16      }
17    }
18    e.popStackFrame();
19    return e;
20  }
This is the JavaScript source for method create(message, errorInfo) from ASP.NET AJAX Library. Full name for this method is Error$create(message, errorInfo). It belongs to the class Error, which is in Global (MicrosoftAjax.debug.js) namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map