Exemplo n.º 1
0
 /* ----------------------------------------------------------------- */
 ///
 /// GsApiException
 ///
 /// <summary>
 /// Initializes a new instance of the GsApiException class with
 /// the specified status.
 /// </summary>
 ///
 /// <param name="status">Status code.</param>
 ///
 /* ----------------------------------------------------------------- */
 public GsApiException(GsApiStatus status) : this(status, $"{status} ({status.ToString("D")})")
 {
 }
Exemplo n.º 2
0
 /* ----------------------------------------------------------------- */
 ///
 /// GsApiException
 ///
 /// <summary>
 /// Initializes a new instance of the GsApiException class with
 /// the specified status and message.
 /// </summary>
 ///
 /// <param name="status">Status code.</param>
 /// <param name="message">Message.</param>
 ///
 /* ----------------------------------------------------------------- */
 public GsApiException(GsApiStatus status, string message) : base(message)
 {
     Status = status;
 }
Exemplo n.º 3
0
 /* ----------------------------------------------------------------- */
 ///
 /// GsApiException
 ///
 /// <summary>
 /// オブジェクトを初期化します。
 /// </summary>
 ///
 /// <param name="status">ステータスコード</param>
 ///
 /* ----------------------------------------------------------------- */
 public GsApiException(GsApiStatus status) : this(status, status.ToString())
 {
 }