WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Checkout\Helpers

ReserveStockException::getErrorCode() public WC 1.0

Returns the error code.

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

No Hooks.

Return

String.

Usage

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

Code of ReserveStockException::getErrorCode() WC 5.9.0

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