Automattic\WooCommerce\StoreApi\Exceptions

InvalidCartException::getErrorpublicWC 1.0

Returns the list of messages.

Method of the class: InvalidCartException{}

No Hooks.

Returns

WP_Error.

Usage

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

InvalidCartException::getError() code WC 9.9.5

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