+2004-07-12 Lluis Sanchez Gual <lluis@novell.com>
+
+ * NewMonoXSD.cs: Don't write the exception trace for common parameter
+ errors.
+
2005-01-11 Atsushi Enomoto <atsushi@ximian.com>
* NewMonoXSD.cs : by default, dataset namespace is not "Schemas" but
{\r
new Driver().Run (args);\r
}\r
- catch (Exception ex)\r
+ catch (ApplicationException ex)\r
{\r
Console.WriteLine (ex.Message);\r
+ }\r
+ catch (Exception ex)\r
+ {\r
Console.WriteLine (ex);\r
}\r
}\r
{\r
if ((arg.EndsWith (".dll") || arg.EndsWith (".exe")) && !arg.Substring (1).StartsWith ("generator:") && !arg.Substring (1).StartsWith ("g:"))\r
{\r
- if (!readingFiles) throw new Exception (incorrectOrder);\r
+ if (!readingFiles) throw new ApplicationException (incorrectOrder);\r
assemblies.Add (arg);\r
assemblyOptions = true;\r
continue;\r
\r
public void Error (string msg)\r
{\r
- throw new Exception (msg);\r
+ throw new ApplicationException (msg);\r
}\r
\r
public void Error (string msg, string param)\r
{\r
- throw new Exception (string.Format(msg,param));\r
+ throw new ApplicationException (string.Format(msg,param));\r
}\r
\r
private string StripQuot (string input)\r