/* ----------------------------------------------------------------- */ /// /// 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")})") { }
/* ----------------------------------------------------------------- */ /// /// 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; }
/* ----------------------------------------------------------------- */ /// /// GsApiException /// /// <summary> /// オブジェクトを初期化します。 /// </summary> /// /// <param name="status">ステータスコード</param> /// /* ----------------------------------------------------------------- */ public GsApiException(GsApiStatus status) : this(status, status.ToString()) { }