Automattic\WooCommerce\StoreApi\Routes\V1\Agentic
Error::__construct
Constructor.
Метод класса: Error{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->__construct( $type, $code, $message, $param );
- $type(строка) (обязательный)
- Error type from ErrorType enum.
- $code(строка) (обязательный)
- Implementation-defined error code.
- $message(строка) (обязательный)
- Human-readable error message.
- $param(строка|null)
- RFC 9535 JSONPath (optional).
По умолчанию:null
Код Error::__construct() Error:: construct WC 10.5.1
private function __construct( $type, $code, $message, $param = null ) {
$this->type = $type;
$this->code = $code;
$this->message = $message;
$this->param = $param;
}