repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2007-03-28 Chris Toshok <toshok@ximian.com>
[mono-project.git]
/
mono
/
tests
/
exception10.cs
blob
fca30cac3fe5937e798f820e32813b5e98c1c447
1
using
System
;
2
3
public class
Test
{
4
5
public static int
Main
(
string
[]
args
) {
6
7
int
c
=
0
;
8
try
9
{
10
throw new
Exception
(
"Test exception"
);
11
}
12
catch
(
Exception e
)
13
{
14
Console
.
WriteLine
(
"Exception:
{0}
"
,
e
.
Message
);
15
}
16
finally
17
{
18
Console
.
WriteLine
(
"Finally...
{0}
"
,
c
++);
19
}
20
21
if
(
c
!=
1
)
22
return
1
;
23
24
return
0
;
25
}
26
}