summary refs log tree commit diff stats
path: root/tests/exception/twrongexc.nim
blob: 9c656f3d9d12717e33c33ac2a270dd85286e5206 (plain) (blame)
1
2
3
4
5
6
7
8
discard """
  outputsub: "Error: unhandled exception:  [ValueError]"
  exitcode: "1"
"""
try:
  raise newException(ValueError, "")
except OverflowError:
  echo("Error caught")