예제 #1
0
 /// <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;
 }
예제 #2
0
 /// <summary>
 /// 内容取得
 /// </summary>
 /// <param name="type">タイプ</param>
 /// <returns></returns>
 public string GetContent(PPDExceptionType type)
 {
     if (dictionary.ContainsKey(type))
     {
         return(dictionary[type]);
     }
     else
     {
         return("");
     }
 }
예제 #3
0
 /// <summary>
 /// コンストラクタ
 /// </summary>
 /// <param name="type">例外タイプ</param>
 /// <param name="exception">例外</param>
 public PPDException(PPDExceptionType type, Exception exception) :
     this(type, "Fatal Error in PPD", exception)
 {
 }