---
title: TranslationError
framework: translation
role: symbol
role_heading: Structure
path: translation/translationerror
---

# TranslationError

Error codes describing why the framework can’t perform a translation.

## Declaration

```swift
struct TranslationError
```

## Topics

### Handling general errors

- [nothingToTranslate](translation/translationerror/nothingtotranslate.md)
- [unableToIdentifyLanguage](translation/translationerror/unabletoidentifylanguage.md)
- [internalError](translation/translationerror/internalerror.md)
- [alreadyCancelled](translation/translationerror/alreadycancelled.md)
- [notInstalled](translation/translationerror/notinstalled.md)

### Handling unsupported errors

- [unsupportedSourceLanguage](translation/translationerror/unsupportedsourcelanguage.md)
- [unsupportedTargetLanguage](translation/translationerror/unsupportedtargetlanguage.md)
- [unsupportedLanguagePairing](translation/translationerror/unsupportedlanguagepairing.md)

### Describing errors

- [errorDescription](translation/translationerror/errordescription.md)
- [failureReason](translation/translationerror/failurereason.md)

### Comparing errors

- [~=(_:_:)](translation/translationerror/~=(_:_:).md)

## Relationships

### Conforms To

- [Error](swift/error.md)
- [LocalizedError](foundation/localizederror.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
