Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

33 lines (27 sloc) 0.983 kb
using System.Net;
using LoveSeat.Support;
namespace LoveSeat
{
public class CouchException : System.Exception
{
private readonly HttpWebRequest request;
private readonly HttpWebResponse response;
public CouchException(HttpWebRequest request, HttpWebResponse response, string mesg)
: base(BuildExceptionMessage(mesg, request))
{
this.request = request;
this.response = response;
}
public CouchException(HttpWebRequest request, CouchResponse response, string mesg)
: base(BuildExceptionMessage(mesg, request))
{
}
public HttpWebRequest Request { get { return request; } }
public HttpWebResponse Response { get { return response; } }
private static string BuildExceptionMessage(string msg, HttpWebRequest request)
{
string excpetionMsg = string.Format("{0} {1}", request.RequestUri, msg);
return excpetionMsg;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.