[Ruby] Summary of exception classes that appear in error statements [Meaning of NameError]

Error name error contents
NameError Undefined local variables/constant(Or private method)I'm calling
NoMethodError Occurs when calling a method that does not exist
TypeError A different type than I expected(class)Is the argument of the method!
ArgumentError The number and type of arguments are different
ZeroDivisionError I tried to divide an integer by 0
SystemStackError The system stack is overflowing. For example, if you call a method recursively by mistake
LoadError Occurs when execution of require or load fails
SyntaxError Syntax error. When there is no end

Recommended Posts

[Ruby] Summary of exception classes that appear in error statements [Meaning of NameError]
Summary of hashes and symbols in Ruby
Differences between Ruby syntax error statements in Ruby and binary
Determine that the value is a multiple of 〇 in Ruby
Classes that require exception handling
NameError in Income # index error
Judgment of fractions in Ruby
Summary of java error processing
Summary of ORM "uroboroSQL" that can be used in enterprise Java
Summary of problems that I could not log in to firebase