adding #include <stdexcept> and rename bind -> bindAttribute