未翻訳
このページはまだ翻訳されていません。原文の内容が表示されています。
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")
引数引数引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
引数
引数は関数への入力値です。関数名の後に括弧で囲んで指定します。
panic()
any
values
any必須引数必須引数必須引数は、関数を呼び出す際に必ず指定しなければなりません。位置引数位置引数位置引数は順序通りに指定することで、引数名を省略して設定できます。可変長引数可変長引数可変長引数は複数回指定することができます。
any
必須引数
必須引数
必須引数は、関数を呼び出す際に必ず指定しなければなりません。
位置引数
位置引数
位置引数は順序通りに指定することで、引数名を省略して設定できます。
可変長引数
可変長引数
可変長引数は複数回指定することができます。
The values to panic with and display to the user.