コード例 #1
0
        /// ------------------------------------------------------------------------------------
        public Exception TryLoadAndReturnException()
        {
            var savTiers = Tiers;

            try
            {
                Tiers = TierCollection.LoadFromAnnotationFile(PathToAnnotatedFile);
            }
            catch (Exception e)
            {
                Logger.WriteEvent("Handled Exception in AnnotationComponentFile.TryLoadAndReturnException:\r\n{0}", e.ToString());
                Tiers = savTiers;
                return(e);
            }

            return(null);
        }