Click or drag to resize

CommunicationException(String, String, HttpStatusCode, String, Exception) Constructor

Initializes a new instance of the CommunicationException class.

Namespace: Sportradar.OddsFeed.SDK.Common.Exceptions
Assembly: Sportradar.OddsFeed.SDK.Common (in Sportradar.OddsFeed.SDK.Common.dll) Version: 1.59.0.0 (1.59.0.0)
Syntax
C#
public CommunicationException(
	string message,
	string url,
	HttpStatusCode responseCode,
	string response,
	Exception innerException
)

Parameters

message  String
The error message that explains the reason for the exception.
url  String
The String representation of the url specifying the resource which was being accessed .
responseCode  HttpStatusCode
A HttpStatusCode specifying the response code
response  String
A String representation of the response received from the external source
innerException  Exception
The exception that is the cause of the current exception, or a null reference if no inner exception is specified.
See Also