# The MongoDB\Driver\Exception\InvalidArgumentException class

(mongodb >= 1.0.0)

## Introduction

Thrown when a driver method is given invalid arguments (e.g. invalid option types).

## Class synopsis

class MongoDB\Driver\Exception\InvalidArgumentException extends InvalidArgumentException implements MongoDB\Driver\Exception\Exception {
/* Inherited properties */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Inherited methods */
final public function Exception::getMessage(): string
final public function Exception::getPrevious(): ?Throwable
final public function Exception::getCode(): int
final public function Exception::getFile(): string
final public function Exception::getLine(): int
final public function Exception::getTrace(): array
final public function Exception::getTraceAsString(): string
public function Exception::__toString(): string
private function Exception::__clone(): void
}
`↑` and `↓` to navigate • `Enter` to select • `Esc` to close • `/` to open