using System; public class ExceptionThrowDemo{ public static void Main(){ ... throw new MyException("Description of problem"); ... } } class MyException: ApplicationException{ public MyException(String problem): base(problem){ } }