// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
Google / Android
Python / IronPython
SQL Server
AJAX Source Viewer
Slideshow of method source in a particular class. Choose a class from the Namespaces, Classes, or Methods menu item above.
Slideshow for Class 'Error'
Previous Method:


Current Method:

argument(paramName, message)
Next Method:

argumentNull(paramName, message)
Method 'argument(paramName, message)'
Method: argument(paramName, message)
Method Full Name:     Error$argument(paramName, message)
Class: Error
Namespace: Global (MicrosoftAjax.debug.js)
Source File: MicrosoftAjax.debug.js
1   Error.argument = function Error$argument(paramName, message) {
2     /// <summary locid="M:J#Error.argument" />
3     /// <param name="paramName" type="String" optional="true" mayBeNull="true"></param>
4     /// <param name="message" type="String" optional="true" mayBeNull="true"></param>
5     /// <returns></returns>
6     var e = Function._validateParams(arguments, [
7     {name: "paramName", type: String, mayBeNull: true, optional: true},
8     {name: "message", type: String, mayBeNull: true, optional: true}
9     ]);
10    if (e) throw e;
11    var displayMessage = "Sys.ArgumentException: " + (message ? message : Sys.Res.argument);
12    if (paramName) {
13      displayMessage += "\n" + String.format(Sys.Res.paramName, paramName);
14    }
15    var e = Error.create(displayMessage, { name: "Sys.ArgumentException", paramName: paramName });
16    e.popStackFrame();
17    return e;
18  }
This is the JavaScript source for method argument(paramName, message) from ASP.NET AJAX Library. Full name for this method is Error$argument(paramName, message). 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