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 9.2.3

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