---
title: AccessorySecuritySession.Error
framework: accessorytransportextension
role: symbol
role_heading: Enumeration
path: accessorytransportextension/accessorysecuritysession/error
---

# AccessorySecuritySession.Error

An error that occurs during accessory security-session operations.

## Declaration

```swift
enum Error
```

## Overview

Overview The framework throws errors of this type when security-session operations fail. Use the error cases to determine the specific cause and handle it appropriately in your accessory transport-security extension.

## Topics

### Interpreting the error cause

- [AccessorySecuritySession.Error.invalidated](accessorytransportextension/accessorysecuritysession/error/invalidated.md)
- [AccessorySecuritySession.Error.unknown](accessorytransportextension/accessorysecuritysession/error/unknown.md)
- [AccessorySecuritySession.Error.unsupported](accessorytransportextension/accessorysecuritysession/error/unsupported.md)

### Accessing error details

- [description](accessorytransportextension/accessorysecuritysession/error/description.md)

## Relationships

### Conforms To

- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Handling session events

- [AccessorySecuritySession.EventHandler](accessorytransportextension/accessorysecuritysession/eventhandler.md)
