Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Any errors in the creation of suite are handled by throwing an exception.

Code Block
languagepy
try :
 defs = ecflow.Defs() # create a empty definition
 s1 = defs.add_suite("s1") # create a suite "s1" and add to defs
 s2 = defs.add_suite("s1") # Exception thrown trying to add suite "s1" again
except RuntimeError, e : 
 print e 

...