We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afb3352 commit 513a09dCopy full SHA for 513a09d
1 file changed
docs/panic.md
@@ -3,4 +3,11 @@ There are 2 types of states where panics come.
3
For example, the soft_panic, is the normal and
4
safer version of the panic, whereas target_panic
5
is a hard crash type of panic, not a regular type
6
-of error.
+of error.
7
+
8
+The regular panic normally used, `control.panic` implementation looks like this in the runtime.
9
+``` ts
10
+ export function panic(code: number) {
11
+ U.userError("PANIC! Code " + code) // throw a panic code to the problems pane
12
+ }
13
+```
0 commit comments