---
title: MTLIOError
framework: metal
role: symbol
role_heading: Structure
path: metal/mtlioerror-swift.struct
---

# MTLIOError

The categories of errors for creating an input/output file handle.

## Declaration

```swift
struct MTLIOError
```

## Topics

### Error codes

- [urlInvalid](metal/mtlioerror-swift.struct/urlinvalid.md)
- [internal](metal/mtlioerror-swift.struct/internal.md)
- [MTLIOError.Code](metal/mtlioerror-swift.struct/code.md)

### Error domain

- [errorDomain](metal/mtlioerror-swift.struct/errordomain.md)
- [MTLIOErrorDomain](metal/mtlioerrordomain.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Structures

- [MTLTensorError](metal/mtltensorerror-swift.struct.md)
- [MTLBinaryArchiveError](metal/mtlbinaryarchiveerror-swift.struct.md)
- [MTLCommandBufferError](metal/mtlcommandbuffererror-swift.struct.md)
- [MTLComponentTransform](metal/mtlcomponenttransform.md)
- [MTLCounterSampleBufferError](metal/mtlcountersamplebuffererror-swift.struct.md)
- [MTLDynamicLibraryError](metal/mtldynamiclibraryerror-swift.struct.md)
- [MTLPackedFloatQuaternion](metal/mtlpackedfloatquaternion.md)
- [MTLStitchedLibraryOptions](metal/mtlstitchedlibraryoptions.md)
- [NSDeviceCertification](metal/nsdevicecertification.md)
- [NSProcessPerformanceProfile](metal/nsprocessperformanceprofile.md)
