Changeset 406 for trunk/org.modelica.mdt.omc/src/org/modelica
- Timestamp:
- 03/10/06 13:05:15 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.modelica.mdt.omc/src/org/modelica/mdt/omc/OMCProxy.java
r405 r406 56 56 import org.modelica.mdt.core.List; 57 57 import org.modelica.mdt.core.ListElement; 58 import org.modelica.mdt.core.ModelicaParserException; 58 59 import org.modelica.mdt.core.compiler.ConnectException; 59 60 import org.modelica.mdt.core.compiler.ElementsInfo; … … 633 634 getErrorString(); 634 635 635 return ModelicaParser.parseList(retval); 636 List list = null; 637 try 638 { 639 list = ModelicaParser.parseList(retval); 640 } 641 catch(ModelicaParserException e) 642 { 643 throw new UnexpectedReplyException("Unable to parse list: " 644 + e.getMessage()); 645 } 646 647 return list; 636 648 } 637 649 … … 741 753 else 742 754 { 743 res.setClassNames(ModelicaParser.parseList(retval)); 755 try 756 { 757 res.setClassNames(ModelicaParser.parseList(retval)); 758 } 759 catch (ModelicaParserException e) 760 { 761 throw new UnexpectedReplyException("Unable to parse list: " 762 + e.getMessage()); 763 } 744 764 745 765 /* … … 795 815 retval = "{" + retval + "}"; 796 816 797 List tokens = ModelicaParser.parseList(retval); 817 List tokens = null; 818 try 819 { 820 tokens = ModelicaParser.parseList(retval); 821 } 822 catch (ModelicaParserException e1) 823 { 824 throw new UnexpectedReplyException("Unable to parse list: " 825 + e1.getMessage()); 826 } 798 827 799 828 String filePath = tokens.elementAt(0).toString(); … … 867 896 * hope for the best 868 897 */ 869 List parsedList = ModelicaParser.parseList(retval); 898 List parsedList = null; 899 try 900 { 901 parsedList = ModelicaParser.parseList(retval); 902 } 903 catch (ModelicaParserException e) 904 { 905 throw new UnexpectedReplyException("Unable to parse list: " 906 + e.getMessage()); 907 } 870 908 871 909 /* convert the parsedList to a collection of ElementsInfo:s */
Note: See TracChangeset
for help on using the changeset viewer.