Raise an ArgumentError vs RuntimeError for backwards compatibility