The Error class has several different functions that can be used to create specific types of errors. The majority of the functions that can be called to create error objects relate specifically to function parameters, but others exist that are used by classes such as the PageRequestManager class. All of the Error class's available functions are shown in the following table.
|argument(paramName, message)||Used to create a Sys.ArgumentException object with the name of the function parameter that caused the exception, as well as the specified error message.|
|argumentNull(paramName, message)||Used to create a Sys.ArgumentNullExeption object with the name of the function parameter that caused the exception, as well as the specified error message. ...|