Automattic\WooCommerce\Api
NotFoundException::__construct
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
extensionsobject.
По умолчанию:array() - ?\Throwable $previous
.
По умолчанию:null(обязательный)
- .
Код NotFoundException::__construct() 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 );
}