<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "watchOS: 10.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SafetyKit",
  "identifier" : "/documentation/SafetyKit/SAError",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SafetyKit"
    ],
    "preciseIdentifier" : "s:SC11SAErrorCodeLeV"
  },
  "title" : "SAError"
}
-->

# SAError

An error reported by SafetyKit.

```
struct SAError
```

## Topics

### Inspecting error information

[`static var errorDomain: String`](/documentation/SafetyKit/SAError/errorDomain)

### Comparing errors

### Identifying an error cause

[`enum Code`](/documentation/SafetyKit/SAError/Code)

Codes for identifying errors in SafetyKit.

[`let SAErrorDomain: String`](/documentation/SafetyKit/SAErrorDomain)

The domain for error objects that SafetyKit produces.

[`static var invalidArgument: SAError.Code`](/documentation/SafetyKit/SAError/invalidArgument)

The method received an argument that it can’t validate.

[`static var notAllowed: SAError.Code`](/documentation/SafetyKit/SAError/notAllowed)

The system currently restricts the feature on this device.

[`static var notAuthorized: SAError.Code`](/documentation/SafetyKit/SAError/notAuthorized)

The system denies the app from performing the requested operation.

[`static var operationFailed: SAError.Code`](/documentation/SafetyKit/SAError/operationFailed)

The requested operation failed; retrying may succeed.

## Relationships

### Conforms To

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

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

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

[`CustomNSError`](/documentation/Foundation/CustomNSError)

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

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

---

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)