Table of Contents

Class RequestException

Namespace
Coherence.Runtime
Assembly
Coherence.Runtime.dll
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

errorCode ErrorCode
statusCode int
userMessage string
retry bool

RequestException(int, string)

public RequestException(int statusCode, string message)

Parameters

statusCode int
message string

Properties

ErrorCode

public ErrorCode ErrorCode { get; }

Property Value

ErrorCode

Message

public override string Message { get; }

Property Value

string

Retry

public bool Retry { get; }

Property Value

bool

StatusCode

public int StatusCode { get; }

Property Value

int

UserMessage

public string UserMessage { get; }

Property Value

string

Methods

TryParse(string, int, out RequestException, Logger)

public static bool TryParse(string response, int statusCode, out RequestException requestException, Logger logger)

Parameters

response string
statusCode int
requestException RequestException
logger Logger

Returns

bool