Class RequestException
public class RequestException : Exception
- Inheritance
-
RequestException
Constructors
RequestException(ErrorCode, int, string, bool)
public RequestException(ErrorCode errorCode, int statusCode = 0, string userMessage = null, bool retry = false)
Parameters
RequestException(int, string)
public RequestException(int statusCode, string message)
Parameters
Properties
ErrorCode
public ErrorCode ErrorCode { get; }
Property Value
Message
public override string Message { get; }
Property Value
Retry
public bool Retry { get; }
Property Value
StatusCode
public int StatusCode { get; }
Property Value
UserMessage
public string UserMessage { get; }
Property Value
Methods
TryParse(string, int, out RequestException, Logger)
public static bool TryParse(string response, int statusCode, out RequestException requestException, Logger logger)
Parameters
response
stringstatusCode
intrequestException
RequestExceptionlogger
Logger