blob: 4e921b8a399db72244ba5e90ad703fc60878158d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
discard """
file: "twrongexc.nim"
outputsub: "Error: unhandled exception: [ValueError]"
exitcode: "1"
"""
try:
raise newException(ValueError, "")
except OverflowError:
echo("Error caught")
|