Automattic\WooCommerce\EmailEditor

Exception::withErrors │ public │ WC 1.0

Method of the class: Exception{}

No Hooks.

Returns

static.

Usage

$Exception = new Exception();
$Exception->withErrors( $errors );
$errors(string[]) (required)
.

Exception::withErrors() code WC 11.1.2

public function withErrors(array $errors) {
  $this->errors = $errors;
  return $this;
}