Проверяет, является ли error экземпляром TlsException.
error
TlsException
bool isTlsException(Object? error) => error is TlsException;