Document the panic function of library deployment

This commit is contained in:
Alex Beregszaszi
2021-05-26 15:51:46 +01:00
parent 29c8f282e4
commit bf2c82adca
4 changed files with 9 additions and 6 deletions
+1
View File
@@ -598,6 +598,7 @@ function calls which will cause a Panic.
A Panic exception is generated in the following situations.
The error code supplied with the error data indicates the kind of panic.
#. 0x00: Used for generic compiler inserted panics.
#. 0x01: If you call ``assert`` with an argument that evaluates to false.
#. 0x11: If an arithmetic operation results in underflow or overflow outside of an ``unchecked { ... }`` block.
#. 0x12; If you divide or modulo by zero (e.g. ``5 / 0`` or ``23 % 0``).