is not a subscription plan.", $plan instanceof PlanSnapshotEntity ? $plan->getId()->getValue() : $plan->getValue() ), $code, $previous ); } }