Automattic\WooCommerce\EmailEditor

UnexpectedValueException{}WC 1.0└─ HttpAwareException, RuntimeException

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 10.7.0

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