<!--
{
  "documentType" : "article",
  "framework" : "LatentSemanticMapping",
  "identifier" : "/documentation/LatentSemanticMapping/error-codes",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Error Codes"
}
-->

# Error Codes

Error codes in Latent Semantic Mapping.

## Topics

### Errors

[`var kLSMMapOutOfState: Int`](/documentation/LatentSemanticMapping/kLSMMapOutOfState)

An error code that indicates you can’t issue the call in the current map state.

[`var kLSMMapNoSuchCategory: Int`](/documentation/LatentSemanticMapping/kLSMMapNoSuchCategory)

An error code that indicates an invalid category.

[`var kLSMMapWriteError: Int`](/documentation/LatentSemanticMapping/kLSMMapWriteError)

An error code that indicates a map writing error.

[`var kLSMMapBadPath: Int`](/documentation/LatentSemanticMapping/kLSMMapBadPath)

An error code that indicates the specified URL doesn’t exist.

[`var kLSMMapBadCluster: Int`](/documentation/LatentSemanticMapping/kLSMMapBadCluster)

An error code that indicates the specified clusters are invalid.

[`var kLSMMapOverflow: Int`](/documentation/LatentSemanticMapping/kLSMMapOverflow)

An error code that indicates you can’t add more data to the map.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)