@@ -46,31 +46,14 @@ public class GsApiException : Exception
4646 /// <param name="status">Status code.</param>
4747 ///
4848 /* --------------------------------------------------------------------- */
49- public GsApiException ( int status ) :
50- this ( ( GsApiStatus ) Enum . ToObject ( typeof ( GsApiStatus ) , status ) ) { }
49+ public GsApiException ( int status ) : this ( ( GsApiStatus ) Enum . ToObject ( typeof ( GsApiStatus ) , status ) ) { }
5150
5251 /* --------------------------------------------------------------------- */
5352 ///
5453 /// GsApiException
5554 ///
5655 /// <summary>
5756 /// 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
7457 /// the specified status.
7558 /// </summary>
7659 ///
@@ -92,28 +75,7 @@ public GsApiException(GsApiStatus status) : this(status, $"{status} ({status:D})
9275 /// <param name="message">Message.</param>
9376 ///
9477 /* --------------------------------------------------------------------- */
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- }
78+ public GsApiException ( GsApiStatus status , string message ) : base ( message ) => Status = status ;
11779
11880 #endregion
11981
@@ -129,6 +91,7 @@ public GsApiException(GsApiStatus status, string message, string log) :
12991 ///
13092 /* --------------------------------------------------------------------- */
13193 public GsApiStatus Status { get ; }
94+
13295 /* --------------------------------------------------------------------- */
13396 ///
13497 /// logPath
@@ -138,7 +101,7 @@ public GsApiException(GsApiStatus status, string message, string log) :
138101 /// </summary>
139102 ///
140103 /* --------------------------------------------------------------------- */
141- public string logPath { get ; }
104+ public string Log { get ; init ; }
142105
143106 #endregion
144107}
0 commit comments