MaxMind.GeoIP2 : MaxMind.GeoIP2.Exceptions Namespace

HttpException Class

This class represents an HTTP transport error. This is not an error returned by the web service itself. As such, it is a IOException instead of a GeoIP2Exception.

Syntax

public class HttpException : System.IO.IOException

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Exceptions
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Members

See Also: Inherited members from System.IO.IOException.

Public Constructors

Protected Constructors

Public Properties

[read-only]
HttpStatus System.Net.HttpStatusCode . The HTTP status code returned by the web service.
[read-only]
Uri Uri . The URI queried by the web service.

Public Methods

override
GetObjectData (System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Populates a SerializationInfo with the data needed to serialize the target object.

Member Details

HttpException Constructor

Constructor for deserialization.

Syntax

Parameters

info
The SerializationInfo with data.
context
The source for this deserialization.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Exceptions
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

HttpException Constructor

Initializes a new instance of the MaxMind.GeoIP2.Exceptions.HttpException class.

Syntax

public HttpException (string message, System.Net.HttpStatusCode httpStatus, Uri uri)

Parameters

message
A message describing the reason why the exception was thrown.
httpStatus
The HTTP status of the response that caused the exception.
uri
The URL queried.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Exceptions
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

HttpException Constructor

Initializes a new instance of the MaxMind.GeoIP2.Exceptions.HttpException class.

Syntax

public HttpException (string message, System.Net.HttpStatusCode httpStatus, Uri uri, Exception innerException)

Parameters

message
A message describing the reason why the exception was thrown.
httpStatus
The HTTP status of the response that caused the exception.
uri
The URL queried.
innerException
The underlying exception that caused this one.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Exceptions
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

GetObjectData Method

Populates a SerializationInfo with the data needed to serialize the target object.

Syntax

[System.Security.SecurityCritical]
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)

Parameters

info
The SerializationInfo to populate with data.
context
The destination (see StreamingContext) for this serialization.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Exceptions
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

HttpStatus Property

The HTTP status code returned by the web service.

Syntax

public System.Net.HttpStatusCode HttpStatus { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Exceptions
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Uri Property

The URI queried by the web service.

Syntax

public Uri Uri { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Exceptions
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0