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