src/Simple.OData.Client.Core/Http/WebRequestException.cs
/// <summary>
/// Creates from the instance of HttpResponseMessage.
/// </summary>
/// <param name="statusCode">The HTTP status code.</param>
/// <param name="exceptionMessageSource">The source used to build exception message, see <see cref="WebRequestExceptionMessageSource"/></param>
/// <param name="responseContent"></param>
/// <returns>The instance of <see cref="WebRequestException"/>.</returns>
Creates from the instance of HttpResponseMessage.
Creates from the instance of HttpResponseMessage .
public static WebRequestException CreateFromStatusCode(
		HttpStatusCode statusCode,
		WebRequestExceptionMessageSource exceptionMessageSource,
		string? responseContent = null)
	{
		return new WebRequestException(statusCode.ToString(), statusCode, null, responseContent, exceptionMessageSource, null);
	}
public static WebRequestException CreateFromStatusCode ( HttpStatusCode statusCode , WebRequestExceptionMessageSource exceptionMessageSource , string ? responseContent = null ) { return new WebRequestException ( statusCode . ToString ( ) , statusCode , null , responseContent , exceptionMessageSource , null ) ; }
Creates from the instance of HttpResponseMessage.
Creates from the instance of HttpResponseMessage .
The instance of .
The instance of .
statusCode
HttpStatusCode
The HTTP status code.
The HTTP status code .
exceptionMessageSource
WebRequestExceptionMessageSource
The source used to build exception message, see
The source used to build exception message see
responseContent
string?
None