Package org.gudy.azureus2.plugins.platform

Examples of org.gudy.azureus2.plugins.platform.PlatformManagerException


  }

  // @see org.gudy.azureus2.plugins.platform.PlatformManager#unregisterAdditionalFileType(java.lang.String, java.lang.String)
  public void unregisterAdditionalFileType(String name, String type)
      throws PlatformManagerException {
    throw new PlatformManagerException(ERR_UNSUPPORTED);
  }
View Full Code Here


    throw new PlatformManagerException(ERR_UNSUPPORTED);
  }

  // @see org.gudy.azureus2.platform.PlatformManager#getAzComputerID()
  public String getAzComputerID() throws PlatformManagerException {
    throw new PlatformManagerException(ERR_UNSUPPORTED);
  }
View Full Code Here

  public String getAzComputerID() throws PlatformManagerException {
    throw new PlatformManagerException(ERR_UNSUPPORTED);
  }

  public void requestUserAttention(int type, Object data) throws PlatformManagerException {
    throw new PlatformManagerException("Unsupported capability called on platform manager");
  }
View Full Code Here

            az_exe = new File(az_home + File.separator + app_exe_name).getAbsoluteFile();

            if (!az_exe.exists()) {

              throw (new PlatformManagerException(app_exe_name
                  + " not found in " + az_home + ", please re-install"));
            }
          } catch (Throwable e) {
          }
        }
               
        if ( !az_exe.exists()){
         
          String  msg = app_exe_name + " not found in " + az_home + " - can't check file associations. Please re-install " + app_name;
         
          az_exe = null;
         
          if (!az_exe_checked){
         
            Logger.log(new LogAlert(LogAlert.UNREPEATABLE, LogAlert.AT_WARNING,
                msg));
          }
         
          throw( new PlatformManagerException( msg ));
        }
      }finally{
       
        az_exe_checked  = true;
      }
View Full Code Here

    try{
      return access.getUserAppData() + SystemProperties.SEP + app_name + SystemProperties.SEP;
     
    }catch( Throwable e ){
     
      throw( new PlatformManagerException( "Failed to read registry details", e ));
    }   
  }
View Full Code Here

         
          return(new File(access.getUserMusicDir()));
         
        }catch( Throwable e ){
         
        throw( new PlatformManagerException( "Failed to read registry details", e ));
        }
      } else if (location_id == LOC_DOCUMENTS) {
        try{
         
          return(new File(access.getUserDocumentsDir()));
         
        }catch( Throwable e ){
         
        throw( new PlatformManagerException( "Failed to read registry details", e ));
        }
      } else if (location_id == LOC_VIDEO) {
        try{
         
          return(new File(access.getUserVideoDir()));
         
        }catch( Throwable e ){
         
        throw( new PlatformManagerException( "Failed to read registry details", e ));
        }
      }else{
       
        return( null );
      }
View Full Code Here

  {
    String vendor = System.getProperty( "java.vendor", "<unknown>" );
   
    if ( !vendor.toLowerCase().startsWith( "sun " ) && !vendor.toLowerCase().startsWith( "oracle " )){
     
      throw( new PlatformManagerException(
            MessageText.getString(
              "platform.jvmopt.sunonly",
              new String[]{ vendor })));
    }
   
    File[] option_files = getJVMOptionFiles();
   
    if ( option_files.length != 2 ){
     
      throw( new PlatformManagerException(
          MessageText.getString( "platform.jvmopt.configerror" )));
    }
   
    File shared_options = option_files[0];
   
    if ( shared_options.exists()){

      try{
        String s_options = FileUtil.readFileAsString( shared_options, -1 );
 
        if ( s_options.contains( getJVMOptionRedirect() )){
                 
          File local_options = option_files[1];
         
          return( local_options );
         
        }else{
         
          throw( new PlatformManagerException( MessageText.getString( "platform.jvmopt.nolink" )));
        }
      }catch( Throwable e ){
       
        throw( new PlatformManagerException( MessageText.getString( "platform.jvmopt.accesserror", new String[]{ Debug.getNestedExceptionMessage(e) } )));
      }
    }else{
     
      throw( new PlatformManagerException( MessageText.getString( "platform.jvmopt.nolinkfile" )));
    }     
  }
View Full Code Here

     
      return( list.toArray( new String[list.size()]));
         
    }catch( Throwable e ){
     
      throw( new PlatformManagerException( MessageText.getString( "platform.jvmopt.accesserror", new String[]{ Debug.getNestedExceptionMessage(e) } )));
    }
    }
View Full Code Here

          }
        }
      }         
    }catch( Throwable e ){
     
      throw( new PlatformManagerException( MessageText.getString( "platform.jvmopt.accesserror", new String[]{ Debug.getNestedExceptionMessage(e) } )));
    }
  }
View Full Code Here

           
            access.deleteValue( AEWin32Access.HKEY_CURRENT_USER, key, app_name );
          }
      }catch( Throwable e ){
       
        throw( new PlatformManagerException( "Failed to write 'run at login' key", e ));
      }
      }
     }
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.plugins.platform.PlatformManagerException

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.