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

                       
                                                        
               
   
    

                                    


                      

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