summary refs log tree commit diff stats
path: root/tests/vm/texception.nim
blob: 65a781281bc7611babaedbcfbba931a3803ca26e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
proc someFunc() =
  try:
    raise newException(ValueError, "message")
  except ValueError as err:
    doAssert err.name == "ValueError"
    doAssert err.msg == "message"
    raise

static:
  try:
    someFunc()
  except:
    discard