コード例 #1
0
 internal YandexApiException(HttpStatusCode statusCode, string reasonPhrase, ErrorDescription error)
     : base(error?.Description ?? reasonPhrase)
 {
     Error = error;
     StatusCode = statusCode;
     ReasonPhrase = reasonPhrase;
 }
コード例 #2
0
 internal NotAuthorizedException(string reasonPhrase, ErrorDescription error)
     : base(HttpStatusCode.Unauthorized, reasonPhrase, error)
 { }