10 #ifndef _RD_EXCEPTIONS_H 11 #define _RD_EXCEPTIONS_H 22 int index ()
const {
return _idx; };
36 std::string
message ()
const {
return _value; };
50 std::string
key()
const {
return _key; };
KeyErrorException(std::string key)
std::string message() const
ValueErrorException(const std::string i)
Class to allow us to throw an IndexError from C++ and have it make it back to Python.
Class to allow us to throw a ValueError from C++ and have it make it back to Python.
IndexErrorException(int i)
ValueErrorException(const char *msg)
Class to allow us to throw a KeyError from C++ and have it make it back to Python.