! * \brief Get the backtrace of the error object. * \return The backtrace of the error object. * \note Consider use TracebackMostRecentCallLast for pythonic style traceback. * * \sa TracebackMostRecentCallLast */
| 230 | * \sa TracebackMostRecentCallLast |
| 231 | */ |
| 232 | std::string backtrace() const { |
| 233 | ErrorObj* obj = static_cast<ErrorObj*>(data_.get()); |
| 234 | return std::string(obj->backtrace.data, obj->backtrace.size); |
| 235 | } |
| 236 | |
| 237 | /*! |
| 238 | * \brief Get the traceback in the order of most recent call last. |