The other 90 percent of the time it??™ll be abundantly
clear to the user.
OK, no one ever said that, but someone probably should have before now.
The simple fact is that if you develop software for a living, you deal with errors. You deal
with exceptional situations that inevitably arise at the most inopportune time during the execution
of your code. You do your best to handle them gracefully, and that requires forethought
and extra effort put in.
Bugs and runtime problems lurk around every corner (see Figure 3-2), eating away at your
carefully crafted code! This is no less true with DWR than anything else.
Figure 3-2. Bugs and runtime problems lurk around every corner, eating away at your carefully
crafted code!
Fortunately, DWR doesn??™t completely leave you out in the cold. In fact, it has a fairly
robust system of error/exception handling that lets you deal with things in the most appropriate
manner, and as the situation warrants. It does this by allowing you to set up handlers for
CHAPTER 3 n ADVANCED DWR 101
the various types of exceptional situations that can arise, and it allows you to do so on a number
of levels. First, let??™s look at the way DWR categorizes these exceptional situations.
Pages:
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213