Murach's C#
How to handle exceptions and validate data
First, this chapter shows you how to use structured exception handling so you can
make a bulletproof application. Then, it shows you the best ways to validate the data
that the user enters so exceptions are avoided. Frankly, this is the best material
on data validation that we've ever seen, and you can check it out by downloading this
chapter: How to handle exceptions and validate
data.
|
|
|
|
How exceptions work |
174 |
|
How to display a dialog box |
176 |
|
|
How to catch an exception |
178 |
|
How to use the properties and methods
of an exception |
180 |
|
How to use the properties and methods
of an exception |
182 |
|
How to throw an exception |
184 |
|
The Future Value application with exception
handling |
186 |
|
|
How to validate a single entry |
188 |
|
How to use generic methods to validate
an entry |
190 |
|
How to validate multiple entries |
192 |
|
|
The dialog boxes |
194 |
|
The code |
194 |
|
 |
|
|
|
|
© Copyright 1998-2008 Mike Murach &
Associates, Inc. All rights reserved.
|
|
|