<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macCatalyst: 17.4.0 -",
    "macOS: 14.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "System",
  "identifier" : "/documentation/System/Mach/PortRightError",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "System"
    ],
    "preciseIdentifier" : "s:6System4MachO14PortRightErrorO"
  },
  "title" : "Mach.PortRightError"
}
-->

# Mach.PortRightError

Possible errors that can be thrown by Mach.Port operations.

```
enum PortRightError
```

## Topics

### Enumeration Cases

[`case deadName`](/documentation/System/Mach/PortRightError/deadName)

Returned when an operation cannot be completed, because the Mach
port right has become a dead name. This is caused by deallocation of the
receive right on the other end.

## Relationships

### Conforms To

[`Sendable`](/documentation/Swift/Sendable)

[`Error`](/documentation/Swift/Error)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Hashable`](/documentation/Swift/Hashable)

---

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)