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