Package com.aelitis.azureus.core

Examples of com.aelitis.azureus.core.AzureusCoreException


    {
      // make it relative to current directory
      try {
        outputDir = new File(".", outputDir).getCanonicalPath();
      } catch (IOException e) {
        throw new AzureusCoreException("exception occurred while converting directory: ./" + outputDir + " to its canonical path");
      }
    }
    boolean scansubdir = commands.hasOption('r');
    boolean finding = commands.hasOption('f');
View Full Code Here


    StringEncrypter encrypter;
    try {
      encrypter = new StringEncrypter(StringEncrypter.DES_ENCRYPTION_SCHEME);
      return encrypter.decrypt(encryptedPassword).equals(password);
    } catch (EncryptionException e) {
      throw new AzureusCoreException("Unable to decrypt password", e);
    }
  }
View Full Code Here

    try {
      StringEncrypter encrypter = new StringEncrypter(StringEncrypter.DES_ENCRYPTION_SCHEME);
      setEncryptedPassword(encrypter.encrypt(password));
    } catch (EncryptionException e)
    {
      throw new AzureusCoreException("Unable to encrypt password", e);
    }
  }
View Full Code Here

        {
          System.out.println("file: " + dbFile.getCanonicalPath() + " does not exist. using 'null' user manager");
        }
      } catch (IOException e)
      {
        throw new AzureusCoreException("Unable to instantiate default user manager");
      }
     
    }
    return instance;
  }
View Full Code Here

    List list = new ArrayList();
    if( matcher.matches() )
    {
      int minId = Integer.parseInt(matcher.group(1));
      if( minId == 0 )
        throw new AzureusCoreException("lower range must be greater than 0");
      if( minId > torrents.size() )
        throw new AzureusCoreException("lower range specified (" + minId + ") is outside number of torrents (" + torrents.size() + ")");
      if( matcher.group(2) == null )
      {       
        // received a single number. eg: 3
        list.add(torrents.get(minId-1));
        return list;
      }
      int maxId;
      if( matcher.group(3) == null )
        // received bound range. eg: 3-5
        maxId = Integer.parseInt(matcher.group(5));
      else
        // received open ended range. eg: 3-
        maxId = torrents.size();
     
      if( minId > maxId )
        throw new AzureusCoreException("when specifying a range, the max value must be greater than or equal to the min value");
     
      for( int i = (minId-1) ; i < maxId && i < torrents.size() ; i++ )
      {
        list.add(torrents.get(i));
      }
View Full Code Here

 
    throws AzureusCoreException
  {
    if ( !runUpdateProcess( true, true )){
     
      throw( new AzureusCoreException( "Failed to invoke restart" ));
    }
  }
View Full Code Here

   
    if ( pi == null ){
      Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_ERROR,
          "Can't update/restart, mandatory plugin 'azupdater' not found"));
     
      throw( new AzureusCoreException( "mandatory plugin 'azupdater' not found" ));
    }
   
    String  updater_dir = pi.getPluginDirectoryName();
   
    classpath_prefix = updater_dir + File.separator + UPDATER_JAR;
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.AzureusCoreException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.