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