repo.or.cz
/
boo.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
BOO-907: Raised strings are now wrapped in a System.Exception instead of a System...
[boo.git]
/
tests
/
testcases
/
integration
/
statements
/
raise-1.boo
blob
2a5678b67064bc7b5020dcd19268d0c209feeceb
1
"""
2
error!
3
4
"""
5
try
:
6
raise
"error!"
7
except
x
as
System
.
ApplicationException
:
8
print
"String is raised as ${x.GetType()}"
9
except
x
as
System
.
Exception
:
10
print
(
x
.
Message
)