class InvalidArgumentException extends ArgumentException

Invalid option exception.

Methods

__construct(string $message, string|null $suggestion = null, int $code = 0, Throwable|null $previous = null)

Constructor.

Details

at line 27
__construct(string $message, string|null $suggestion = null, int $code = 0, Throwable|null $previous = null)

Constructor.

Parameters

string $message The Exception message to throw
string|null $suggestion Suggestion
int $code The Exception code
Throwable|null $previous The previous exception used for the exception chaining