⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cfileexception.cs

📁 KTDictSeg 简介: KTDictSeg 是由KaiToo搜索开发的一款基于字典的简单中英文分词算法 * 主要功能: 中英文分词
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;

namespace FTAlgorithm.General
{
    /// <summary>
    /// 文件操作异常
    /// </summary>
    public class CFileException : CException
    {
        /// <summary>
        /// 设置异常类型
        /// </summary>
        protected override void SetExceptionType()
        {
            m_Type = ExceptionType.FileException;
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="Code">异常代码</param>
        /// <param name="strMessage">异常消息</param>
        /// <param name="strReason">异常原因</param>
        public CFileException(ExceptionCode Code, String strMessage, String strReason)
            : base(Code, strMessage, strReason)
        {
            Debug.Assert((int)Code >= 1100 && (int)Code < 1200);
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="Code">异常代码</param>
        /// <param name="strMessage">异常消息</param>
        /// <param name="e">从这个异常引入的异常</param>
        /// <example>
        /// try
        /// {
        /// ......
        /// 
        /// }
        /// catch (Exception e)
        /// {
        ///     CDbException E = new CDbException ("Example Exception", e);
        ///     E.Raise();
        /// }
        /// </example>
        public CFileException(ExceptionCode Code, String strMessage, Exception e)
            : base(Code, strMessage,e)
        {
            Debug.Assert((int)Code >= 1100 && (int)Code < 1200);
        }
 
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -