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