Class ResponseFailException
Invoker exceptions where status is not 200.
public class ResponseFailException : Exception, ISerializable
- Inheritance
-
ResponseFailException
- Implements
- Inherited Members
Constructors
ResponseFailException(HttpStatusCode, string, Exception)
Initializes a new instance of the ResponseFailException class.
public ResponseFailException(HttpStatusCode statusCode, string resultToString, Exception innerException)
Parameters
statusCode
HttpStatusCodeThe status code.
resultToString
stringThe result to string.
innerException
ExceptionThe inner Exception.
ResponseFailException(string?, HttpStatusCode, string, Exception?)
Initializes a new instance of the ResponseFailException class.
public ResponseFailException(string? url, HttpStatusCode statusCode, string resultToString, Exception? innerException)
Parameters
url
stringThe url.
statusCode
HttpStatusCodeThe status code.
resultToString
stringThe result to string.
innerException
ExceptionThe inner Exception.
Properties
Message
Gets a message that describes the current exception.
public override string Message { get; }
Property Value
- string
A message that describes the current exception.
StatusCode
Gets or sets the status code of the failed response.
public HttpStatusCode StatusCode { get; set; }
Property Value
- HttpStatusCode
The status code of the failed response.
Url
Gets the status code of the failed response.
public string? Url { get; }
Property Value
- string
The status code of the failed response.