Opened 19 years ago
Last modified 18 years ago
#62 closed defect (fixed)
getClassRestriction dies on undefined class
Reported by: | x05andre | Owned by: | x05andre |
---|---|---|---|
Priority: | critical | Milestone: | |
Component: | Version: | ||
Keywords: | Cc: | x05andre, Adrian Pop |
Description
Change History (2)
comment:1 by , 19 years ago
comment:2 by , 18 years ago
All interactive api functions are designed without error control. The callee
must know what they are doing. Correct behaviour would be to first call
existClass. I therefore makes this bug invalid.
Note:
See TracTickets
for help on using tickets.
The following is a session with Mosh:
[x05andre@pan2 src]$ ./mosh
Open Source Modelica 1.3
Copyright 2002, PELAB, Linkoping University
To get help on using Mosh and OpenModelica, type "help()" and press enter
Started server using:omc +d=interactive >
/home/x05andre/ex/omc-build/omc/error.log 2>&1 &
"Class getClassRestriction not found in scope <global scope>.
Variable something not found in scope <global scope>
No matching function found for getClassRestriction, candidates are
"
As can be seen, getClassRestriction() returns nothing at all when the argument
is an undefined class. And the error message isn't very helpful.
Some indication that an error has occured would be helpful, as well as a better
error message.
I'm running omc revision 2149.