diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-01-02 19:26:05 +0000 |
commit | 14f1b3e8826ce43b978db93a62d1166055db5394 (patch) | |
tree | 0a00ad8d3498783fe0193f3b656bca17c4c8697d /source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h | |
parent | 4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff) |
Notes
Diffstat (limited to 'source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h')
-rw-r--r-- | source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h | 55 |
1 files changed, 21 insertions, 34 deletions
diff --git a/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h b/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h index c74e52b9ef56..20f4b4c6329d 100644 --- a/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h +++ b/source/Plugins/ScriptInterpreter/Python/PythonExceptionState.h @@ -14,54 +14,41 @@ #include "PythonDataObjects.h" -namespace lldb_private -{ +namespace lldb_private { -class PythonExceptionState -{ - public: - explicit PythonExceptionState(bool restore_on_exit); - ~PythonExceptionState(); +class PythonExceptionState { +public: + explicit PythonExceptionState(bool restore_on_exit); + ~PythonExceptionState(); - void - Acquire(bool restore_on_exit); + void Acquire(bool restore_on_exit); - void - Restore(); + void Restore(); - void - Discard(); + void Discard(); - void - Reset(); + void Reset(); - static bool - HasErrorOccurred(); + static bool HasErrorOccurred(); - bool - IsError() const; + bool IsError() const; - PythonObject - GetType() const; + PythonObject GetType() const; - PythonObject - GetValue() const; + PythonObject GetValue() const; - PythonObject - GetTraceback() const; + PythonObject GetTraceback() const; - std::string - Format() const; + std::string Format() const; - private: - std::string - ReadBacktrace() const; +private: + std::string ReadBacktrace() const; - bool m_restore_on_exit; + bool m_restore_on_exit; - PythonObject m_type; - PythonObject m_value; - PythonObject m_traceback; + PythonObject m_type; + PythonObject m_value; + PythonObject m_traceback; }; } |