MailPoet\EmailEditor

Exception::withError()publicWC 1.0

Method of the class: Exception{}

No Hooks.

Return

static.

Usage

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

Exception::withError() code WC 9.8.1

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