Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.

 

 

 

 

 

 

 

Error.argumentUndefined Function

Creates an Error Object object that represents the Sys.ArgumentUndefinedException exception.

Syntax

var err = Error.argumentUndefined(paramName, message);

Arguments

paramName

(Optional) The name of the parameter as a string that caused the exception. The value can be null.

message

(Optional) An error message string. The value can be null. If message is null, a default message is used.

Return Value

An Error object that has name and paramName fields added to the Error type definition.

Remarks

The argumentUndefined function lets you communicate that an exception has occurred when an argument provided to a method is undefined. Use the argumentUndefined function to create an Error object that represents a Sys.ArgumentUndefinedException exception. The paramName argument enables you to specify the name of the parameter whose value was undefined and that caused the exception. The message argument enables you to specify an error message.