CIRCT 20.0.0git
Loading...
Searching...
No Matches
Functions
nanobind Namespace Reference

Functions

nanobind::python_error raisePyError (PyObject *exc_class, const char *message)
 Raises a python exception with the given message.
 
nanobind::python_error raiseValueError (const char *message)
 Raises a value error with the given message.
 
nanobind::python_error raiseValueError (const std::string &message)
 Raises a value error with the given message.
 

Function Documentation

◆ raisePyError()

nanobind::python_error nanobind::raisePyError ( PyObject *  exc_class,
const char *  message 
)
inlineprivate

Raises a python exception with the given message.

Correct usage:

Definition at line 67 of file NanobindUtils.h.

Referenced by raiseValueError(), and raiseValueError().

◆ raiseValueError() [1/2]

nanobind::python_error nanobind::raiseValueError ( const char *  message)
inlineprivate

Raises a value error with the given message.

Correct usage: throw RaiseValueError("Foobar'd");

Definition at line 76 of file NanobindUtils.h.

References raisePyError().

◆ raiseValueError() [2/2]

nanobind::python_error nanobind::raiseValueError ( const std::string &  message)
inlineprivate

Raises a value error with the given message.

Correct usage: throw RaiseValueError(message);

Definition at line 83 of file NanobindUtils.h.

References raisePyError().