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