comparison oct-py-error.h @ 423:6b9de18b4bdd

Eliminate remaining custom exception handling in favor of Octave errors * oct-py-error.cc, oct-py-error.h (pytave::error_python_exception): New function to generate an Octave error from an active Python error condition, based on pytave::fetch_exception_message. * oct-py-eval.cc (pytave::py_call_function, pytave::py_run_string_safe): Use it. * oct-py-types.cc (pytave::make_py_dict): Likewise. * oct-py-util.cc (pytave::py_objstore): Likewise. * pycall.cc (Fpycall): Remove exception handling logic. * pyeval.cc (Fpyeval): Likewise. * pyexec.cc (Fpyexec): Likewise. * exceptions.cc, exceptions.h: Delete. * Makefile.am (COMMON_SOURCE_FILES, PYTAVE_HEADER_FILES): Remove them.
author Mike Miller <mtmiller@octave.org>
date Thu, 04 May 2017 21:15:07 -0700
parents 8247f298fd16
children
comparison
equal deleted inserted replaced
422:8247f298fd16 423:6b9de18b4bdd
41 void 41 void
42 error_conversion_mismatch_python_type (const std::string& to, 42 error_conversion_mismatch_python_type (const std::string& to,
43 const std::string& must) 43 const std::string& must)
44 PYTAVE_ATTR_NORETURN; 44 PYTAVE_ATTR_NORETURN;
45 45
46 void
47 error_python_exception ()
48 PYTAVE_ATTR_NORETURN;
49
46 } 50 }
47 51
48 #undef PYTAVE_ATTR_NORETURN 52 #undef PYTAVE_ATTR_NORETURN
49 53
50 #endif 54 #endif