Automattic\WooCommerce\StoreApi\Exceptions

InvalidCartException::getErrorCode()publicWC 1.0

Returns the error code.

Method of the class: InvalidCartException{}

No Hooks.

Return

String.

Usage

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

InvalidCartException::getErrorCode() code WC 8.7.0

public function getErrorCode() {
	return $this->error_code;
}