Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Back to Docs_main.

pyd.exception



void handle_exception();
This function first checks if a Python exception is set, and then (if one is) pulls it out, stuffs it in a PythonException, and throws that exception.

If this exception is never caught, it will be handled by the function wrapping template and passed right back into Python as though nothing happened.

class PythonException: object.Exception;
This simple exception class holds a Python exception.