---
title: "init(uuid:name:reason:localizedFailureDescription:)"
framework: HomeKit
role: symbol
role_heading: Initializer
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, visionOS 27.2+]
path: "homekit/hmhome/provisionalhometransferresult/failedaccessory/init(uuid:name:reason:localizedfailuredescription:)"
---

# init(uuid:name:reason:localizedFailureDescription:)

Creates the structure that contains information about why a transfer failed.

## Declaration

```swift
init(uuid: UUID, name: String, reason: HMHome.ProvisionalHomeTransferResult.FailedAccessory.Reason, localizedFailureDescription: String? = nil)
```

## Parameters

- `uuid`: A string that uniquely identifies the accessory.
- `name`: The name of the accessory.
- `reason`: A value that indicates why the transfer failed.
- `localizedFailureDescription`: A localized string that explains why the transfer failed.

## Return Value

Return Value An accessory that wasn’t transferred to the home hub.

## See Also

### Describing the failed accessory

- [uuid](homekit/hmhome/provisionalhometransferresult/failedaccessory/uuid.md)
- [name](homekit/hmhome/provisionalhometransferresult/failedaccessory/name.md)
- [reason](homekit/hmhome/provisionalhometransferresult/failedaccessory/reason-swift.property.md)
- [HMHome.ProvisionalHomeTransferResult.FailedAccessory.Reason](homekit/hmhome/provisionalhometransferresult/failedaccessory/reason-swift.enum.md)
- [localizedFailureDescription](homekit/hmhome/provisionalhometransferresult/failedaccessory/localizedfailuredescription.md)
