# Location Service API error messages

This section provides information about the error messages returned by the Location Service API methods.

### GetLocation

The following table describes the error messages returned by `GetLocation` and `callback` for `GetLocation` as part of their return value.

Table: GetLocation error messages
Error message | Description
--- | ---
`Location : GetLocation : Wrong category info should be BasicLocationInformation/GenericLocationInfo` | The `LocationInformationClass` property contains an invalid value.
`Location : GetLocation : BadArgument - Updateoptions` | An `Updateoptions` property has an invalid name.
`Location : GetLocation : Negative Time Interval` | The `Updateoptions.UpdateInterval` property is negative.
`Location : GetLocation : Updateoptions Type Mismatch` | An `Updateoptions` property contains a value with an invalid type.

### Trace

The following table describes the error messages returned by `Trace` and `callback` for `Trace` as part of their return value.

Table: Trace error messages
Error message | Description
--- | ---
`Location : Trace : Invalid LocationInformationClass` | The `LocationInformationClass` property contains an invalid value.
`Location : Trace : BadArgument - Updateoptions` | An `Updateoptions` property has an invalid name.
`Location : Trace : Negative Time Interval` | The `Updateoptions.UpdateInterval` property is negative.
`Location : Trace : Updateoptions Type Mismatch` | An `Updateoptions` property contains a value with an invalid type.

### Calculate

The following table describes the error messages returned by `Calculate` as part of its return value.

Table: Calculate error messages
Error message | Description
--- | ---
`Location : Calculate : Missing argument - MathRequest` | The `MathRequest` property is missing from the input.
`Location : Calculate : Wrong argument - MathRequest` | The `MathRequest` property contains an invalid value.
`Location : Calculate : Missing argument - locationcoordinate` | Location coordinates are missing from the input.
`Location : Calculate : Missing argument - MoveByThisDistance` | The `MoveByThisDistance` property is missing from the input.
`Location : Calculate : Missing argument - MoveByThisBearing` | The `MoveByThisBearing` property is missing from the input.
`Location : Calculate : TypeMismatch - MoveByThisDistance` | The `MoveByThisDistance` property contains a value with an invalid type.
`Location : Calculate : TypeMismatch - MoveByThisBearing` | The `MoveByThisBearing` property contains a value with an invalid type.

### CancelNotification

The following table describes the error messages returned by `CancelNotification` as part of its return value.

Table: CancelNotification error messages
Error message | Description
--- | ---
`Location : Cancel : BadArgument – cancel type` | The cancel type property in the input has an invalid name. The expected name is `CancelRequestType`.
`Location : Cancel : Missing cancel type` | The `CancelRequestType` property is missing from the input.
`Location : Cancel : Wrong cancel type` | The `CancelRequestType` property contains an invalid value.