Automattic\WooCommerce\EmailEditor
Exception::withError
Метод класса: Exception{}
Хуков нет.
Возвращает
static.
Использование
$Exception = new Exception(); $Exception->withError( $id, $error );
- $id(строка) (обязательный)
- .
- $error(строка) (обязательный)
- .
Код Exception::withError() Exception::withError WC 11.2.2
public function withError(string $id, string $error) {
$this->errors[$id] = $error;
return $this;
}