---
title: MachError
framework: foundation
role: symbol
role_heading: Structure
path: foundation/macherror
---

# MachError

Describes an error in the Mach error domain.

## Declaration

```swift
struct MachError
```

## Topics

### Type Aliases

- [MachError.Code](foundation/macherror/code.md)

### Type Properties

- [aborted](foundation/macherror/aborted.md)
- [alreadyInSet](foundation/macherror/alreadyinset.md)
- [alreadyWaiting](foundation/macherror/alreadywaiting.md)
- [codesignError](foundation/macherror/codesignerror.md)
- [defaultSet](foundation/macherror/defaultset.md)
- [exceptionProtected](foundation/macherror/exceptionprotected.md)
- [failure](foundation/macherror/failure.md)
- [invalidAddress](foundation/macherror/invalidaddress.md)
- [invalidArgument](foundation/macherror/invalidargument.md)
- [invalidCapability](foundation/macherror/invalidcapability.md)
- [invalidHost](foundation/macherror/invalidhost.md)
- [invalidLedger](foundation/macherror/invalidledger.md)
- [invalidMemoryControl](foundation/macherror/invalidmemorycontrol.md)
- [invalidName](foundation/macherror/invalidname.md)
- [invalidObject](foundation/macherror/invalidobject.md)
- [invalidPolicy](foundation/macherror/invalidpolicy.md)
- [invalidProcessorSet](foundation/macherror/invalidprocessorset.md)
- [invalidRight](foundation/macherror/invalidright.md)
- [invalidSecurity](foundation/macherror/invalidsecurity.md)
- [invalidTask](foundation/macherror/invalidtask.md)
- [invalidValue](foundation/macherror/invalidvalue.md)
- [lockOwned](foundation/macherror/lockowned.md)
- [lockOwnedSelf](foundation/macherror/lockownedself.md)
- [lockSetDestroyed](foundation/macherror/locksetdestroyed.md)
- [lockUnstable](foundation/macherror/lockunstable.md)
- [memoryDataMoved](foundation/macherror/memorydatamoved.md)
- [memoryError](foundation/macherror/memoryerror.md)
- [memoryFailure](foundation/macherror/memoryfailure.md)
- [memoryPresent](foundation/macherror/memorypresent.md)
- [memoryRestartCopy](foundation/macherror/memoryrestartcopy.md)
- [nameExists](foundation/macherror/nameexists.md)
- [noAccess](foundation/macherror/noaccess.md)
- [noSpace](foundation/macherror/nospace.md)
- [nodeDown](foundation/macherror/nodedown.md)
- [notDepressed](foundation/macherror/notdepressed.md)
- [notInSet](foundation/macherror/notinset.md)
- [notReceiver](foundation/macherror/notreceiver.md)
- [notSupported](foundation/macherror/notsupported.md)
- [notWaiting](foundation/macherror/notwaiting.md)
- [operationTimedOut](foundation/macherror/operationtimedout.md)
- [policyLimit](foundation/macherror/policylimit.md)
- [policyStatic](foundation/macherror/policystatic.md)
- [protectionFailure](foundation/macherror/protectionfailure.md)
- [resourceShortage](foundation/macherror/resourceshortage.md)
- [rightExists](foundation/macherror/rightexists.md)
- [rpcContinueOrphan](foundation/macherror/rpccontinueorphan.md)
- [rpcServerTerminated](foundation/macherror/rpcserverterminated.md)
- [rpcTerminateOrphan](foundation/macherror/rpcterminateorphan.md)
- [semaphoreDestroyed](foundation/macherror/semaphoredestroyed.md)
- [success](foundation/macherror/success.md)
- [terminated](foundation/macherror/terminated.md)
- [userReferencesOverflow](foundation/macherror/userreferencesoverflow.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

### Error Codes

- [CocoaError](foundation/cocoaerror.md)
- [POSIXError](foundation/posixerror.md)
- [NSError Codes](foundation/1448136-nserror-codes.md)
