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")