RosettaCodeData/Task/Exceptions/Nim/exceptions-3.nim

9 lines
163 B
Nim
Raw Permalink Normal View History

2016-12-05 23:44:36 +01:00
try:
spam()
except SillyError:
echo "Got SillyError with message: ", getCurrentExceptionMsg()
except:
echo "Got another exception"
finally:
echo "Finally"