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