未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
panic
Fails with an error.
Arguments are displayed to the user (not rendered in the document) as
strings, converting with repr
if necessary.
Example
The code below produces the error panicked with: "this is wrong"
.
#panic("this is wrong")
引数Parameters 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.
panic()
any
values
anyRequiredRequired parameters must be specified when calling the function.PositionalPositional parameters are specified in order, without names.VariadicVariadic parameters can be specified multiple times.
any
Required
Required parameters must be specified when calling the function.
Positional
Positional parameters are specified in order, without names.
Variadic
Variadic parameters can be specified multiple times.
The values to panic with and display to the user.