Automattic\WooCommerce\StoreApi\Exceptions

InvalidStockLevelsInCartException::getErrorpublicWC 1.0

Returns the list of messages.

Method of the class: InvalidStockLevelsInCartException{}

No Hooks.

Returns

WP_Error.

Usage

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

InvalidStockLevelsInCartException::getError() code WC 10.7.0

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