summary refs log blame commit diff stats
path: root/tests/exception/twrongexc.nim
blob: 755f7d9790139b3f78174ae9cc1f27c167a5b2f0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

                       
                                                           
               
   





                                       

 
discard """
  file: "twrongexc.nim"
  outputsub: "Error: unhandled exception:  [EInvalidValue]"
  exitcode: "1"
"""
try:
  raise newException(EInvalidValue, "")
except EOverflow:
  echo("Error caught")