class

ArgumentError

Inherits Exception / Reference / Object

Raised when the arguments are wrong and there isn't a more specific Exception class.

[1, 2, 3].first(-4) # raises ArgumentError (attempt to take negative size)

Constructors

new(message = "Argument error")
Source