Automattic\WooCommerce\EmailEditor

NotFoundException{}WC 1.0└─ HttpAwareException, UnexpectedValueException

USE: When the main resource we're interested in doesn't exist. API: 404 Not Found

No Hooks.

Usage

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

Methods

  1. public getHttpStatusCode()

NotFoundException{} code WC 10.4.3

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