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
statusCodeHttpStatusCodeThe status code.
resultToStringstringThe result to string.
innerExceptionExceptionThe 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
urlstringThe url.
statusCodeHttpStatusCodeThe status code.
resultToStringstringThe result to string.
innerExceptionExceptionThe 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.