<!--
{
  "documentType" : "article",
  "framework" : "MetalKit",
  "identifier" : "/documentation/MetalKit/mesh-error-handling",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Mesh Error Handling"
}
-->

# Mesh Error Handling

Strings used when handling <doc://com.apple.documentation/documentation/Foundation/NSError> messages returned from a mesh initialization method.

## Topics

### Constants

[`static let domain: MTKModelError`](/documentation/MetalKit/MTKModelError/domain)

The error domain used by MetalKit when returning mesh initialization errors.

[`static let key: MTKModelError`](/documentation/MetalKit/MTKModelError/key)

The key used to retrieve an error string from an error object’s <doc://com.apple.documentation/documentation/Foundation/NSError/userInfo> dictionary.



---

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)