Automattic\WooCommerce\EmailEditor

Exception::withErrorpublicWC 1.0

Method of the class: Exception{}

No Hooks.

Returns

static.

Usage

$Exception = new Exception();
$Exception->withError( $id, $error );
$id(string) (required)
.
$error(string) (required)
.

Exception::withError() code WC 10.6.2

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