[Instructions] [Search] [Current] [Changes] [Syllabus] [Handouts] [Outlines] [Labs] [Assignments] [Examples] [Bailey Docs] [SamR Docs] [Tutorial] [API]
Held: Tuesday, February 3, 1998
throws the exception,
as in
public int MyCoolMethod()
throws IOException, NumberFormatException
{
...
} // MyCoolMethod()
try clause.
catch clause.
try {
// stuff that may have problems
}
catch (ExceptionClass e1) {
// Handle one type of exception
}
catch (AnotherExceptionClass e2) {
// Handle another type of exception
}
finally {
// Clean up code that is always executed.
}
java.io.IOException and
java.lang.NumberFormatException.
throw new MyException(message);
throws clause, as in
public static void teach()
throws ClassOverException
{
...
} // teach
Exception.
Today, we'll work on a lab in which you'll experiment with exceptions by adding exception handling to your calculators.
On to Documenting Your Java Programs
Back to Building Graphical Programs
Outlines:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Current position in syllabus
[Instructions] [Search] [Current] [Changes] [Syllabus] [Handouts] [Outlines] [Labs] [Assignments] [Examples] [Bailey Docs] [SamR Docs] [Tutorial] [API]
Disclaimer Often, these pages were created "on the fly" with little, if any, proofreading. Any or all of the information on the pages may be incorrect. Please contact me if you notice errors.
This page may be found at http://www.math.grin.edu/~rebelsky/Courses/CS152/98S/home/rebelsky/public_html/Courses/CS152/98S/Outlines/outline.10.html
Source text last modified Tue Jan 12 11:52:18 1999.
This page generated on Mon Jan 25 09:48:54 1999 by SiteWeaver. Validate this page.
Contact our webmaster at rebelsky@math.grin.edu