---
title: "~=(_:_:)"
framework: translation
role: symbol
role_heading: Operator
path: "translation/translationerror/~=(_:_:)"
---

# ~=(_:_:)

This operator allows you to check for a given value of a translation error and handle each error case.

## Declaration

```swift
static func ~= (match: TranslationError, error: any Error) -> Bool
```

## Discussion

Discussion You can use switch and case to check for a given value of TranslationError, if you want to handle each error case separately.
