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