.. index:: pair: class; QPanda::QPandaException .. _doxid-class_q_panda_1_1_q_panda_exception: class QPanda::QPandaException ============================= .. toctree:: :hidden: QPanda2 exception basic class. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class QPandaException: public runtime_error { public: // construction :target:`QPandaException`(); :target:`QPandaException`(const char* str); :target:`QPandaException`(std::string str); // methods virtual const char* :target:`what`(); }; // direct descendants class :ref:`calloc_fail`; class :ref:`gate_alloc_fail`; class :ref:`init_fail`; class :ref:`qalloc_fail`; class :ref:`qcircuit_construction_fail`; class :ref:`qprog_construction_fail`; class :ref:`qprog_syntax_error`; class :ref:`qvm_attributes_error`; class :ref:`result_get_fail`; class :ref:`run_fail`; class :ref:`undefine_error`;