public TemplateGroupFile(string fileName, char delimiterStartChar, char delimiterStopChar)
: base(delimiterStartChar, delimiterStopChar)
{
if (fileName == null)
throw new ArgumentNullException("fileName");
try
{
if (!fileName.EndsWith(GroupFileExtension))
throw new ArgumentException("Group file names must end in .stg: " + fileName);
if (!File.Exists(fileName))
throw new FileNotFoundException(string.Format("No such group file: {0}", fileName));
this._url = new Uri(fileName);
this._fileName = fileName;
if (Verbose)
Console.WriteLine("STGroupFile({0}) == file {1}", fileName, Path.GetFullPath(fileName));
}
catch (Exception e)
{
e.PreserveStackTrace();
if (!e.IsCritical())
ErrorManager.InternalError(null, "can't Load group file " + fileName, e);
throw;
}
}