WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

InvalidStockLevelsInCartException::getError() public WC 1.0

Returns the list of messages.

{} It's a method of the class: InvalidStockLevelsInCartException{}

No Hooks.

Return

WP_Error.

Usage

$InvalidStockLevelsInCartException = new InvalidStockLevelsInCartException();
$InvalidStockLevelsInCartException->getError();

Code of InvalidStockLevelsInCartException::getError() WC 5.8.0

public function getError() {
	return $this->error;
}