TypstDocumentation

panic

Fail with an error.

Example

The code below produces the error panicked with: "this is wrong".

#panic("this is wrong")

Parameters
Question mark

panic(
..any
) ->

values
any
RequiredPositional
Question mark
Variadic
Question mark

The values to panic with.