0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Ruby】エラー文に出てくる例外クラスまとめ【NameErrorとかの意味 】

Last updated at Posted at 2020-09-22
エラー名 エラー内容
NameError 未定義のローカル変数/定数(又はprivateメソッド)とかを呼び出しちゃってる
NoMethodError 存在しないメソッドを呼び出しちゃった時に発生
TypeError 期待してたのと違う型(クラス)がメソッドの引数になってるよ!
ArgumentError 引数の数・型が違う
ZeroDivisionError 整数を0で割り算しようとしちゃった
SystemStackError システムスタックがあふれちゃてる。間違ってメソッド再帰呼び出しした場合など
LoadError requireやloadの実行に失敗したときに発生
SyntaxError 構文エラー。 endない時とか
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?