class MissingOptionException extends ArgumentException

Missing option exception.

Properties

protected string $name Argument name. from ArgumentException

Methods

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

Constructor.

string
getName()

Returns the name of the missing argument.

Details

in ArgumentException at line 34
__construct(string $message, string $name, int $code = 0, Throwable|null $previous = null)

Constructor.

Parameters

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

in ArgumentException at line 46
string getName()

Returns the name of the missing argument.

Return Value

string