Changeset 87 for trunk


Ignore:
Timestamp:
10/24/05 14:47:06 (19 years ago)
Author:
remar
Message:
  • exception "handling"
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/org.modelica.mdt/src/org/modelica/mdt/internal/core/ModelicaPackage.java

    r81 r87  
    101101       
    102102        String retval = null;
    103         retval = ModeqCommunicationImplementation.sendExpression("getPackages("+fullName+")");
     103        try
     104        {
     105            retval = ModeqCommunicationImplementation.sendExpression("getPackages("+fullName+")");
     106        }
     107        catch(Exception e)
     108        {
     109            System.out.println(e.getMessage());
     110            return null;
     111        }
    104112       
    105113        String[] tokens = parseList(retval);
     
    151159       
    152160        String retval = null;
    153         retval = ModeqCommunicationImplementation.sendExpression("getClassNames("+fullName+")");
     161        try
     162        {
     163            retval = ModeqCommunicationImplementation.sendExpression("getClassNames("+fullName+")");
     164        }
     165        catch(Exception e)
     166        {
     167            System.out.println(e.getMessage());
     168            return null;
     169        }
    154170
    155171       
     
    167183            if(str.equals(""))
    168184                continue;
    169             retval = ModeqCommunicationImplementation.sendExpression("isPackage("+fullName+"."+str+")");
     185            try
     186            {
     187                retval = ModeqCommunicationImplementation.sendExpression("isPackage("+fullName+"."+str+")");
     188            }
     189            catch(Exception e)
     190            {
     191                System.out.println(e.getMessage());
     192                return null;
     193            }
    170194
    171195            if(retval.contains("false"))
Note: See TracChangeset for help on using the changeset viewer.