Automattic\WooCommerce\Api\Infrastructure\Schema
Error{}
Stable subclass of the underlying GraphQL engine's Error, used by autogenerated resolvers when they need to surface a GraphQL-spec error directly (e.g. the UNAUTHORIZED error an autogenerated authorize()-backed resolver throws before invoking the command).
Behaviour is inherited verbatim, including the named extensions argument that callers rely on to attach an error code.
No Hooks.
Usage
$Error = new Error(); // use class methods
Methods
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
- ERROR: no method name found on line ``
Error{} Error{} code WC 10.9.1
class Error extends \Automattic\WooCommerce\Vendor\GraphQL\Error\Error {
}