using System; using System.Collections.Generic; namespace ProtoCSStruct { public class ProtoParseException : Exception { public ProtoParseException(string message) : base (message) { } } public static class ExceptionUtils { public static void Throw(string format, params object[] argv) { string message = string.Format(format, argv); throw new ProtoParseException(message); } } }