Mono.Documentation.MDocCommand.Error C# (CSharp) Method

Error() public method

public Error ( string format ) : void
format string
return void
		public void Error (string format, params object[] args)
		{
			throw new Exception (string.Format (format, args));
		}

Usage Example

Beispiel #1
0
        private static void AddFormat(MDocCommand self, Dictionary <string, List <string> > d, string format, string file)
        {
            if (format == null)
            {
                self.Error("No format specified.");
            }
            List <string> l;

            if (!d.TryGetValue(format, out l))
            {
                l = new List <string> ();
                d.Add(format, l);
            }
            l.Add(file);
        }
All Usage Examples Of Mono.Documentation.MDocCommand::Error