MaxMind.GeoIP2 : MaxMind.GeoIP2.Exceptions Namespace

InvalidRequestException Class

This class represents a non-specific error returned by MaxMind's GeoIP2 web service. This occurs when the web service is up and responding to requests, but the request sent was invalid in some way.

Syntax

public class InvalidRequestException : GeoIP2Exception

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 GeoIP2Exception.

Public Constructors

Protected Constructors

Public Properties

[read-only]
Code string . The error 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

InvalidRequestException 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

InvalidRequestException Constructor

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

Syntax

public InvalidRequestException (string message, string code, Uri uri)

Parameters

message
A message explaining the cause of the error.
code
The error code returned by the web service.
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

Code Property

The error code returned by the web service.

Syntax

public string Code { 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

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

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