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.invalidOperation Function

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


var err = Error.invalidOperation(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 a name field added to the Error type definition.


The invalidOperation function lets you communicate that a method call failed for reasons other than invalid arguments. Use the invalidOperation function to create an Error object that represents a Sys.InvalidOperationException exception that can include a custom error message.