Subsequent claims of that interface then always fail.
351580
private void removeClaimedInterfaceNumberOnWindows()
	{
		try {
			final Class<? extends UsbDevice> c = dev.getClass();
			final Class<?> abstractDevice = c.getSuperclass();
			final Field field = abstractDevice.getDeclaredField("claimedInterfaceNumbers");
			field.setAccessible(true);
			final Object set = field.get(dev);
			if (set instanceof Set<?>) {
				@SuppressWarnings("unchecked")
				final Set<Byte> numbers = (Set<Byte>) set;
				numbers.remove(knxUsbIf.getUsbInterfaceDescriptor().bInterfaceNumber());
			}
		}
		catch (final Exception e) {
			// specifically NoSuchFieldException, SecurityException, IllegalArgumentException, IllegalAccessException
			logger.error("on removing claimed interface number, subsequent claims might fail!", e);
		}
	}
548683
def alwaysCalledWith(cls, spy, *args, **kwargs): #pylint: disable=invalid-name
        
        cls.__is_spy(spy)
        if not (spy.alwaysCalledWith(*args, **kwargs)):
            raise cls.failException(cls.message)
462107
protected boolean isFailure(ExecutionResult result) {
    if (result.isNonResult())
      return false;
    else if (policy instanceof FailurePolicy)
      return ((FailurePolicy) policy).isFailure(result);
    else
      return result.getFailure() != null;
  }
1071933
def retry(self, retries=3, backoff_factor=0.3, status_forcelist=(500, 502, 504)):
        
        retries = Retry(
            total=retries,
            read=retries,
            connect=retries,
            backoff_factor=backoff_factor,
            status_forcelist=status_forcelist,
        )
        # mount all https requests
        self.mount('https://', adapters.HTTPAdapter(max_retries=retries))
126424
def clientConnectionFailed(self, connector, reason):
        
        log.debug("Connect failed: %s", reason)
        self.conn.defunct(reason.value)
1295914
private void failProbes(ImmutableMember suspect) {
    SwimMember swimMember = new SwimMember(suspect);
    LOGGER.debug("{} - Failed all probes of {}", localMember.id(), swimMember);
    swimMember.setState(State.SUSPECT);
    if (updateState(swimMember.copy()) && config.isBroadcastUpdates()) {
      broadcast(swimMember.copy());
    }
  }
723422
private void handleAuthorizationFailure(Response response, Throwable t, JSONObject extendedInfo) {
        logger.error("authorization process failed");

        if (t != null) {
            t.printStackTrace();
        }

        Iterator<ResponseListener> iterator = authorizationQueue.iterator();

        while(iterator.hasNext()) {
            ResponseListener next = iterator.next();
            next.onFailure(response, t, extendedInfo);
            iterator.remove();
        }
    }
933431
protected void fail(final Receiver<Void> receiver, final ServerFailure failure) {
    this.reuse();
    failure.setRequestContext(this);
    Set<Throwable> causes = null;
    for (final AbstractRequest<?, ?> request : new ArrayList<>(this.state.invocations)) {
      try {
        request.onFail(failure);
      } catch (final Throwable t) {
        if (causes == null) {
          causes = new HashSet<>();
        }
        causes.add(t);
      }
    }
    if (receiver != null) {
      try {
        receiver.onFailure(failure);
      } catch (final Throwable t) {
        if (causes == null) {
          causes = new HashSet<>();
        }
        causes.add(t);
      }
    }

    if (causes != null) {
      throw new UmbrellaException(causes);
    }
  }
5236
public void fail (ClientConnection cc, Throwable t) {
    if (tc.isEntryEnabled()) {
      SibTr.entry(tc, "fail", new Object[]{ cc, t });
      SibTr.exit(tc, "fail");
    }
  }
1104043
protected void fail(Throwable exception) {
        Preconditions.checkState(!this.contents.isDone(), "ReadResultEntry has already had its result set.");
        this.contents.completeExceptionally(exception);
    }
181637
private void ensureExists(AlluxioURI path) throws IOException {
    try {
      mFileSystem.getStatus(path);
    } catch (AlluxioException e) {
      throw new IOException(e);
    }
  }
1115774
def fail(self, err='MockupDB query failure', *args, **kwargs):
        
        kwargs.setdefault('flags', 0)
        kwargs['flags'] |= REPLY_FLAGS['QueryFailure']
        kwargs['$err'] = err
        self.replies(*args, **kwargs)
        return True
659003
def failed
      @brokers.inject([]) { |c, b| b.failed? ? c << b.identity : c }
    end
1033836
protected void fail(RequestDetails theRequestDetails, ValidationResult theValidationResult) {
		throw new UnprocessableEntityException(theRequestDetails.getServer().getFhirContext(), theValidationResult.toOperationOutcome());
	}
197001
protected void handleInstallRequestFailure(MemberState member, InstallRequest request, Throwable error) {
    // Log the failed attempt to contact the member.
    failAttempt(member, error);
  }
488315
@Override
    public void onFailure(Response response, Throwable t, JSONObject extendedInfo) {
        if (isAuthorizationRequired(response)) {
            processResponseWrapper(response, true);
        } else {
            listener.onFailure(response, t, extendedInfo);
        }
    }
648230
function onEntityDeletionFailed( serverResponse ) {
			self.logInterface.error( serverResponse.data );
			self.scope.$emit( "absyncError", serverResponse );

			if( self.throwFailures ) {
				throw serverResponse;
			}
		}