If I have a method that returns something, like
public DataTable ReturnSomething() { try { //logic here return ds.Tables[0]; } catch (Ex
How about this :
public DataTable ReturnSomething(out string errorString) { errorString = string.Empty; DataTable dt = new DataTable(); try { //logic here dt = ds.Tables[0]; } catch (Exception e) { errorString = e.Message; } return dt; }