protected Optional<Remote> _call() { if (name == null || name.isEmpty()) { throw new RemoteException(StatusCode.MISSING_NAME);
protected Remote _call() { if (name == null || name.isEmpty()) { throw new RemoteException(StatusCode.MISSING_NAME); throw new RemoteException(StatusCode.MISSING_URL); List<String> allRemotes = config.getAllSubsections("remote"); if (allRemotes.contains(name)) { throw new RemoteException(StatusCode.REMOTE_ALREADY_EXISTS);
protected Remote _call() { if (name == null || name.isEmpty()) { throw new RemoteException(StatusCode.MISSING_NAME); final Optional<Remote> remote = command(RemoteResolve.class).setName(name).call(); if (!remote.isPresent()) { throw new RemoteException(StatusCode.REMOTE_NOT_FOUND);