示例#1
0
        static void Main(string[] args)
        {
            converter = new RomanNumeralConverter();
            string errorMessage;

            try
            {
                Run();
            }

            catch (OverflowException ofEx)
            {
                errorMessage = ofEx.Message;
                Console.WriteLine(errorMessage);
            }

            catch (Exception e)
            {
                errorMessage = e.Message;
                Console.WriteLine(errorMessage);
            }
        }
 static void Main(string[] args)
 {
     converter = new RomanNumeralConverter();
     Run();
 }