![]() |
Prev | Next | error_message_xam.py | Headings |
def error_message_xam() : # # load the Cppad Swig library import py_cppad # # initialize return variable ok = True # --------------------------------------------------------------------- ok = False try : py_cppad.error_message("test message") except : # catch stored_message = py_cppad.error_message("") ok = (stored_message == "test message") # return( ok ) #