/// <summary> /// コンストラクタ /// </summary> /// <param name="type">例外タイプ</param> /// <param name="detail">詳細</param> /// <param name="exception">例外</param> public PPDException(PPDExceptionType type, string detail, Exception exception) : base(detail, exception) { ExceptionType = type; if (detail == null) { detail = ""; } Detail = detail; }
/// <summary> /// 内容取得 /// </summary> /// <param name="type">タイプ</param> /// <returns></returns> public string GetContent(PPDExceptionType type) { if (dictionary.ContainsKey(type)) { return(dictionary[type]); } else { return(""); } }
/// <summary> /// コンストラクタ /// </summary> /// <param name="type">例外タイプ</param> /// <param name="exception">例外</param> public PPDException(PPDExceptionType type, Exception exception) : this(type, "Fatal Error in PPD", exception) { }