class ArgumentError

Overview

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

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

Superclass hierarchy

Object
Reference
Exception
ArgumentError

Defined in:

Class Method Summary

Class Method Detail

def self.name : String

def self.new(message = "Argument error")