WooCommerce Code Reference

InvalidStateException extends RuntimeException
in package

USE: An application state that should not occur. Can be subclassed for feature-specific exceptions.

API: 500 Server Error (not HTTP-aware)

Table of Contents

$errors  : array<string|int, string>
__construct()  : mixed
create()  : static
getErrors()  : array<string|int, mixed>
withCode()  : static
withError()  : static
withErrors()  : static
withMessage()  : static

Properties

Methods

__construct()

public final __construct([string $message = '' ], int $code[, Throwable $previous = null ]) : mixed
Parameters
$message : string = ''
$code : int
$previous : Throwable = null
Return values
mixed