Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
ExtendRestApi::throw_exception( string|Throwable $exception_or_error )
Throws error and/or silently logs it.
Description Description
Parameters Parameters
- $exception_or_error
-
(Required) Error message or Exception.
Source Source
File: packages/woocommerce-blocks/src/Domain/Services/ExtendRestApi.php