class AmbiguousCommandIdentifierException extends CommandException (View source)

An "Ambiguous command identifier" exception

Properties

protected string $referenceCode from  Exception
protected int $statusCode from  Exception
protected Command[] $matchingCommands

Methods

string
getReferenceCode()

Returns a code which can be communicated publicly so that whoever experiences the exception can refer to it and a developer can find more information about it in the system log.

int
getStatusCode()

Returns the HTTP status code this exception corresponds to (defaults to 500).

__construct(string $message, int $code, Exception|null $previousException, array $matchingCommands)

Overwrites parent constructor to be able to inject matching commands.

getMatchingCommands()

No description

Details

string getReferenceCode()

Returns a code which can be communicated publicly so that whoever experiences the exception can refer to it and a developer can find more information about it in the system log.

Return Value

string

int getStatusCode()

Returns the HTTP status code this exception corresponds to (defaults to 500).

Return Value

int

__construct(string $message, int $code, Exception|null $previousException, array $matchingCommands)

Overwrites parent constructor to be able to inject matching commands.

Parameters

string $message
int $code
Exception|null $previousException
array $matchingCommands

Commands that matched the command identifier

See also

Exception

Command[] getMatchingCommands()

No description

Return Value

Command[]