Automattic\WooCommerce\EmailEditor
Exception::withError
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() Exception::withError code WC 10.6.2
public function withError(string $id, string $error) {
$this->errors[$id] = $error;
return $this;
}