9#include "pxr/base/tf/api.h"
10#include "pxr/external/boost/python/handle.hpp"
14PXR_NAMESPACE_OPEN_SCOPE
16struct TfPyExceptionState {
17 TfPyExceptionState(pxr_boost::python::handle<>
const &type,
18 pxr_boost::python::handle<>
const &value,
19 pxr_boost::python::handle<>
const &trace) :
20 _type(type), _value(value), _trace(trace) {}
23 ~TfPyExceptionState();
26 TfPyExceptionState (TfPyExceptionState
const &);
29 TfPyExceptionState &operator=(TfPyExceptionState
const &);
35 static TfPyExceptionState Fetch();
37 pxr_boost::python::handle<>
const &GetType()
const {
return _type; }
38 pxr_boost::python::handle<>
const &GetValue()
const {
return _value; }
39 pxr_boost::python::handle<>
const &GetTrace()
const {
return _trace; }
49 std::string GetExceptionString()
const;
52 pxr_boost::python::handle<> _type, _value, _trace;
55PXR_NAMESPACE_CLOSE_SCOPE