panic
Fail with an error.
Example
The code below produces the error panicked with: "this is wrong"
.
#panic("this is wrong")
ParametersParameters are the inputs to a function. They are specified in parentheses after the function name.
Parameters are the inputs to a function. They are specified in parentheses after the function name.
values
anyRequiredPositionalPositional parameters are specified in order, without names.VariadicVariadic parameters can be specified multiple times.
any
RequiredPositionalPositional parameters are specified in order, without names.
Variadic parameters can be specified multiple times.
The values to panic with.