Fixed getCurrentException and getCurrentExceptionMsg. Closes #4635
This commit is contained in:
parent
12cd8fe9e2
commit
f12f27c185
2 changed files with 26 additions and 12 deletions
|
|
@ -9,7 +9,7 @@ FINALLY
|
|||
RECOVER
|
||||
|
||||
BEFORE
|
||||
EXCEPT
|
||||
EXCEPT: IOError: hi
|
||||
FINALLY
|
||||
'''
|
||||
"""
|
||||
|
|
@ -52,10 +52,10 @@ echo ""
|
|||
proc return_in_except =
|
||||
try:
|
||||
echo "BEFORE"
|
||||
raise newException(IOError, "")
|
||||
raise newException(IOError, "hi")
|
||||
|
||||
except:
|
||||
echo "EXCEPT"
|
||||
echo "EXCEPT: ", getCurrentException().name, ": ", getCurrentExceptionMsg()
|
||||
return
|
||||
|
||||
finally:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue