public object Sum(int myObj) { try { if (myObj == 1) { throw new System.ArgumentException("Parameter cannot be one", "original"); } return(myObj); } catch (Exception ex) { _iLoggingHelper.Save(ex); return(null); } }