Automattic\WooCommerce\StoreApi\Exceptions

InvalidCartException::getError()publicWC 1.0

Returns the list of messages.

Method of the class: InvalidCartException{}

No Hooks.

Return

WP_Error.

Usage

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

InvalidCartException::getError() code WC 8.7.0

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