Automattic\WooCommerce\EmailEditor
NotFoundException{}└─ HttpAwareException, UnexpectedValueException
USE: When the main resource we're interested in doesn't exist. API: 404 Not Found
Хуков нет.
Использование
$NotFoundException = new NotFoundException(); // use class methods
Методы
- public getHttpStatusCode()
Код NotFoundException{} NotFoundException{} WC 11.2.2
class NotFoundException extends UnexpectedValueException implements HttpAwareException {
public function getHttpStatusCode(): int {
return 404;
}
}