class ArgumentError inherits Exception ¶ 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) Class methods¶ .new(message = "Argument error") ¶ View source