public void complexPolicy(string policyArray, int storeID, string type, int sessionID) { if (storeID < 0) { throw new ILLArgumentException("illegal store number"); } if (sessionID < 0) { throw new NullReferenceException("session is a null reference"); } db.complexPolicy(policyArray, storeID, type, sessionID); }