WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Blocks\StoreApi\Utilities

InvalidStockLevelsInCartException::getErrorCode() public WC 1.0

Returns the error code.

{} It's a method of the class: InvalidStockLevelsInCartException{}

No Hooks.

Return

String.

Usage

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

Code of InvalidStockLevelsInCartException::getErrorCode() WC 5.8.0

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