예제 #1
0
 public CouchException(CouchError Error) : base(message: Error?.ToString())
 {
     this.Error = Error;
     if (Error != null)
     {
         Console.WriteLine(this.ToString());
     }
 }
예제 #2
0
        private static string ProccessResponse(string responseJsonString)
        {
            var error =
                new CouchError(new NewtonsoftSerializer(), new HttpResponseMessage(HttpStatusCode.InternalServerError)
            {
                Content = new JsonContent(responseJsonString)
            });

            return(error.ToString());
        }