MailPoet\EmailEditor

UnexpectedValueException{}WC 1.0

USE: When wrong data VALUE is received. API: 400 Bad Request

No Hooks.

Usage

$UnexpectedValueException = new UnexpectedValueException();
// use class methods

Methods

  1. public getHttpStatusCode()

UnexpectedValueException{} code WC 9.8.1

class UnexpectedValueException extends RuntimeException implements HttpAwareException {
  public function getHttpStatusCode(): int {
    return 400;
  }
}