~=(_:_:)
This operator allows you to check for a given value of a translation error and handle each error case.
Declaration
static func ~= (match: TranslationError, error: any Error) -> BoolDiscussion
You can use switch and case to check for a given value of TranslationError, if you want to handle each error case separately.