private static string GetMessage(HttpLogicError error) { switch (error) { case HttpLogicError.BadRedirectLocation: return("HTTP request was redirected to a non-existent location"); case HttpLogicError.TooManyRedirects: return("Too many HTTP redirects for the request to handle"); } return("Unknown error"); }
internal HttpLogicException(HttpLogicError error) : base(GetMessage(error)) { Code = error; }