?? cfileexception.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 + -