Automattic\WooCommerce\EmailEditor

Exception::withError │ public │ WC 1.0

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

Хуков нет.

Возвращает

static.

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

$Exception = new Exception();
$Exception->withError( $id, $error );
$id(строка) (обязательный)
.
$error(строка) (обязательный)
.

Код Exception::withError() WC 11.2.2

public function withError(string $id, string $error) {
  $this->errors[$id] = $error;
  return $this;
}