@@ -55,6 +55,22 @@ public GsApiException(int status) :
5555 ///
5656 /// <summary>
5757 /// Initializes a new instance of the GsApiException class with
58+ /// the specified status and message, log.
59+ /// </summary>
60+ ///
61+ /// <param name="status">Status code.</param>
62+ /// <param name="message">Message.</param>
63+ /// <param name="log"> Filepath of GS log.</param>
64+ ///
65+ /* --------------------------------------------------------------------- */
66+ public GsApiException ( int status , string log ) :
67+ this ( ( GsApiStatus ) Enum . ToObject ( typeof ( GsApiStatus ) , status ) , $ "{ status } ({ status : D} )", log ) { }
68+ /* --------------------------------------------------------------------- */
69+ ///
70+ /// GsApiException
71+ ///
72+ /// <summary>
73+ /// Initializes a new instance of the GsApiException class with
5874 /// the specified status.
5975 /// </summary>
6076 ///
@@ -76,8 +92,28 @@ public GsApiException(GsApiStatus status) : this(status, $"{status} ({status:D})
7692 /// <param name="message">Message.</param>
7793 ///
7894 /* --------------------------------------------------------------------- */
79- public GsApiException ( GsApiStatus status , string message ) :
80- base ( message ) => Status = status ;
95+ public GsApiException ( GsApiStatus status , string message ) : this ( status , message , null ) { }
96+
97+ /* --------------------------------------------------------------------- */
98+ ///
99+ /// GsApiException
100+ ///
101+ /// <summary>
102+ /// Initializes a new instance of the GsApiException class with
103+ /// the specified status and message, log.
104+ /// </summary>
105+ ///
106+ /// <param name="status">Status code.</param>
107+ /// <param name="message">Message.</param>
108+ /// <param name="log"> Filepath of GS log.</param>
109+ ///
110+ /* --------------------------------------------------------------------- */
111+ public GsApiException ( GsApiStatus status , string message , string log ) :
112+ base ( message )
113+ {
114+ Status = status ;
115+ logPath = log ;
116+ }
81117
82118 #endregion
83119
@@ -93,6 +129,16 @@ public GsApiException(GsApiStatus status, string message) :
93129 ///
94130 /* --------------------------------------------------------------------- */
95131 public GsApiStatus Status { get ; }
132+ /* --------------------------------------------------------------------- */
133+ ///
134+ /// logPath
135+ ///
136+ /// <summary>
137+ /// Gets the GS log filepath.
138+ /// </summary>
139+ ///
140+ /* --------------------------------------------------------------------- */
141+ public string logPath { get ; }
96142
97143 #endregion
98144}
0 commit comments