Automattic\WooCommerce\Api

NotFoundException::__constructpublicWC 1.0

Constructor.

Метод класса: NotFoundException{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$NotFoundException = new NotFoundException();
$NotFoundException->__construct( $message, $extensions, ?\Throwable $previous,  );
$message(строка)
The error message.
По умолчанию: 'Resource not found.'
$extensions(массив)
Additional error metadata to surface in the GraphQL extensions object.
По умолчанию: array()
?\Throwable $previous

.
По умолчанию: null

(обязательный)

.

Код NotFoundException::__construct() WC 11.0.1

public function __construct(
	string $message = 'Resource not found.',
	array $extensions = array(),
	?\Throwable $previous = null,
) {
	parent::__construct( $message, 'NOT_FOUND', $extensions, 404, $previous );
}