コード例 #1
0
ファイル: Exceptions.cs プロジェクト: tshimizu09/KCVDB.Client
 public ParseRequestOrResponseFailureException(Exception inner, SendingErrorReason reason)
     : base("Failed to parse api data", inner, reason)
 {
 }
コード例 #2
0
ファイル: Exceptions.cs プロジェクト: tshimizu09/KCVDB.Client
 public DataSendingException(string message, Exception inner, SendingErrorReason reason)
     : base($"{message} (Reason: {reason}", inner)
 {
     Reason = reason;
 }
コード例 #3
0
ファイル: Exceptions.cs プロジェクト: tshimizu09/KCVDB.Client
 public HttpSendingFailureException(HttpStatusCode statusCode, SendingErrorReason reason)
     : base($"Failed to send api data to the server (Status: {statusCode})", reason)
 {
 }
コード例 #4
0
ファイル: Exceptions.cs プロジェクト: tshimizu09/KCVDB.Client
 public DataSendingException(SendingErrorReason reason)
     : this($"API data sending faield by {reason}", reason)
 {
 }
コード例 #5
0
ファイル: Exceptions.cs プロジェクト: tshimizu09/KCVDB.Client
 public HttpSendingFailureException(WebException webException, SendingErrorReason reason)
     : base($"Failed to send api data to the server (Status: {webException.Status})", webException, reason)
 {
 }