Examples of PlatformMessengerException


Examples of com.aelitis.azureus.core.messenger.PlatformMessengerException

             
              String    e_message   = (String)reply.get( "message" );

              if ( e_message != null ){
               
                result[0] = new PlatformMessengerException( e_message );

              }else{
               
                String    text   = (String)reply.get( "text" );
               
                Throwable  e     = (Throwable)reply.get( "Throwable" );
               
                if ( text == null && e == null ){
                 
                  result[0] = new PlatformMessengerException( "Unknown error" );
                 
                }else if ( text == null ){
                 
                  result[0] = new PlatformMessengerException( "Failed to send RPC", e );
                 
                }else if ( e == null ){
                 
                  result[0] = new PlatformMessengerException( text );
                 
                }else{
                 
                  result[0] = new PlatformMessengerException( text, e );
                }
              }
            }else{
             
              result[0] = reply;
View Full Code Here

Examples of com.aelitis.azureus.core.messenger.PlatformMessengerException

    try{
      PlatformContentNetworkMessenger.listNetworksAync(new listNetworksListener() {
        public void networkListReturned(List<contentNetworkDetails> cnets) {
          if (cnets == null) {

            Exception e = new PlatformMessengerException( "No networks returned" );

            for ( ContentNetworkListener l : listeners ) {

              l.networkAddFailed(id, e);
            }
View Full Code Here

Examples of com.aelitis.azureus.core.messenger.PlatformMessengerException

      dispatcher.syncInvoke( operation, parameters );
     
    }catch( Throwable e ){
     
      throw( new PlatformMessengerException( "Failed to create/update subscription", e ));
    }
  }
View Full Code Here

Examples of com.aelitis.azureus.core.messenger.PlatformMessengerException

       
        return( details );
      }
    }
   
    throw( new PlatformMessengerException( "Unknown sid '" + ByteFormatter.encodeString(sid) + "'" ));
  }                        
View Full Code Here

Examples of com.aelitis.azureus.core.messenger.PlatformMessengerException

 
    throws PlatformMessengerException
  {
    if ( !MESSAGING_ENABLED ){
     
      throw( new PlatformMessengerException( "messaging disabled" ));
    }
  }
View Full Code Here

Examples of com.aelitis.azureus.core.messenger.PlatformMessengerException

    templateInfo info = getTemplateInfo( reply );
   
    if ( info == null ){
     
      throw( new PlatformMessengerException( "Invalid reply: " + reply ));
    }
   
    String name     = (String)reply.get( "name" );
    String value    = (String)reply.get( "value" );
    String engine_type  = (String)reply.get( "engine_id" );
   
    if ( name == null || value == null || engine_type == null ){
     
      throw( new PlatformMessengerException( "Invalid reply; field missing: " + reply ));
    }
   
    int  type;
   
    if ( engine_type.equals( "json" )){
   
      type = templateDetails.ENGINE_TYPE_JSON;
     
    }else if ( engine_type.equals( "regexp" )){
     
      type = templateDetails.ENGINE_TYPE_REGEXP;
     
    }else{
     
      throw( new PlatformMessengerException( "Invalid type '" + engine_type + ": " + reply ));

    }
   
    return( new templateDetails( info, type, name, value ));
  }
View Full Code Here

Examples of com.aelitis.azureus.core.messenger.PlatformMessengerException

    Association assoc = getAssociation( reply );
   
    if ( assoc == null ){
     
      throw( new PlatformMessengerException( "Invalid reply: " + reply ));
    }
   
    return assoc;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.