---
title: MTLBinaryArchiveError.Code.unexpectedElement
framework: metal
role: symbol
role_heading: Case
path: metal/mtlbinaryarchiveerror-swift.struct/code/unexpectedelement
---

# MTLBinaryArchiveError.Code.unexpectedElement

An error code that indicates a problem with a configuration, typically in a descriptor or an archive’s inability to add linked functions.

## Declaration

```swift
case unexpectedElement
```

## See Also

### Error codes

- [MTLBinaryArchiveError.Code.none](metal/mtlbinaryarchiveerror-swift.struct/code/none.md)
- [MTLBinaryArchiveError.Code.invalidFile](metal/mtlbinaryarchiveerror-swift.struct/code/invalidfile.md)
- [MTLBinaryArchiveError.Code.compilationFailure](metal/mtlbinaryarchiveerror-swift.struct/code/compilationfailure.md)
- [MTLBinaryArchiveError.Code.internalError](metal/mtlbinaryarchiveerror-swift.struct/code/internalerror.md)
- [MTLBinaryArchiveError.Code.none](metal/mtlbinaryarchiveerror-swift.struct/code/none.md)
- [MTLBinaryArchiveError.Code.invalidFile](metal/mtlbinaryarchiveerror-swift.struct/code/invalidfile.md)
- [MTLBinaryArchiveError.Code.compilationFailure](metal/mtlbinaryarchiveerror-swift.struct/code/compilationfailure.md)
- [MTLBinaryArchiveError.Code.internalError](metal/mtlbinaryarchiveerror-swift.struct/code/internalerror.md)
