add multi type exception catching to manual (#18258) (#18323)

This commit is contained in:
xioren
2021-06-21 18:53:35 -07:00
committed by GitHub
parent d398c558a4
commit 16461a8810

View File

@@ -4462,10 +4462,8 @@ Example:
echo "sum: " & $(parseInt(a) + parseInt(b))
except OverflowDefect:
echo "overflow!"
except ValueError:
echo "could not convert string to integer"
except IOError:
echo "IO error!"
except ValueError, IOError:
echo "catch multiple exceptions!"
except:
echo "Unknown exception!"
finally: