SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 105 | Next

Robin Pars, Laurence Moroney, and John Grieb

"Foundations of ASP.NET AJAX"


However, this is a generic Error object used to encapsulate all types of errors and report
them to the user. The ASP.NET AJAX client library Error extension provides support for
some degree of typed exceptions on the client. It contains some of the commonly typed
exceptions found in the .NET Framework. The Error extension allows developers to not
only handle exceptions based on the type of the error generated but also manually throw
errors of a certain type as needed.
The ASP.NET AJAX client library takes care of all necessary work required to properly
serialize these typed errors into and from JSON. When using the Error extension to throw
CHAPTER 4 ?–  ASP.NET AJAX CLIENT LIBRARIES 59
Format Description
an exception, a new type of exception based on the underlying exception type in the Sys
namespace (discussed in a later section in this chapter) is generated. You can even generate
custom errors and make specific references pertaining to the original source of the
error. Table 4-4 lists all ten of the supported static methods of the Error extension.
Table 4-4.


Pages:
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117