public class MyCustomEx : System.Exception{ //class implementation }
throw new System.ApplicationException("Error retrieving data. The web service may be down");