Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » jsbml-development » Errors for undefined elements
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Andreas Dräger


Posts: 273
Registered:
June 2006
Errors for undefined elements 30 Mar '11 10:41 Go to previous message

Dear all,

Recently, Roland Keller detected the problem that if a mandatory
attribute of some element has not been defined, it is difficult to
predict the behavior of a method that is supposed to access this
property. Lucian Smith suggested to throw an Exception in case of, e.g.,
calling getPerstistent() while the persistent attribute has not been set
for Trigger with SBML Level 3. This is also what is now implemented.
However, maybe we should better consider to move one step away from
libSBML here and change the signature of methods like this in the way
that the return value is not longer boolean but Boolean. In other cases
it might be usefull to have the return value Integer instead of int etc.
We could then simply return null for an undefined property instead of
throwing an unexpected runtime exception. What do users or other people
think should be done when trying to access an undefined attribute in
some SBML element?

Best wishes
Andreas

--
Dipl.-Bioinform. Andreas Dräger
University of Tuebingen
Center for Bioinformatics Tuebingen (ZBIT)
Sand 1
72076 Tübingen
Germany

Phone: +49-7071-29-78982
Fax: +49-7071-29-5091
____________________________________________________________
To manage your jsbml-development list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/jsbml-development

For a web interface to the jsbml-development mailing list, visit
http://sbml.org/Forums/

For questions or feedback about the jsbml-development list,
contact sbml-team@caltech.edu

      

SubjectPosterDate
Read Message   Errors for undefined elements  Andreas Dräger30 Mar '11 10:41
Read Message   Re: Errors for undefined elements Mike Hucka31 Mar '11 05:55
Read Message   Re: Errors for undefined elements Andreas Dräger31 Mar '11 06:07
Read Message   Re: Errors for undefined elements rodrigue31 Mar '11 06:39
Read Message   Re: Errors for undefined elements Andreas Dräger31 Mar '11 07:19
Previous Topic:Write to SBML
Next Topic:jsbml/parsing errors
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.