diff options
author | Bernard Normier <bernard@zeroc.com> | 2015-01-02 19:51:09 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2015-01-02 19:51:09 +0000 |
commit | 8fc84a19ca87ed71b8673a2b9f3e2c1e2442fbab (patch) | |
tree | 4417441a6508d3e78ffd780b2e2f735fc72dd27a /cpp/include/IceUtil/Exception.h | |
parent | ICE-6205 - fix GPL license text in RPM (diff) | |
download | ice-8fc84a19ca87ed71b8673a2b9f3e2c1e2442fbab.tar.bz2 ice-8fc84a19ca87ed71b8673a2b9f3e2c1e2442fbab.tar.xz ice-8fc84a19ca87ed71b8673a2b9f3e2c1e2442fbab.zip |
Fixed ICE-5812: refactor capture and printing of exception stack trace
Diffstat (limited to 'cpp/include/IceUtil/Exception.h')
-rw-r--r-- | cpp/include/IceUtil/Exception.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/include/IceUtil/Exception.h b/cpp/include/IceUtil/Exception.h index 5da7f1b00b7..c524ebafdf9 100644 --- a/cpp/include/IceUtil/Exception.h +++ b/cpp/include/IceUtil/Exception.h @@ -13,6 +13,7 @@ #include <IceUtil/Config.h> #include <exception> +#include <vector> namespace IceUtil { @@ -33,14 +34,14 @@ public: const char* ice_file() const; int ice_line() const; - const std::string& ice_stackTrace() const; + std::string ice_stackTrace() const; private: const char* _file; int _line; static const char* _name; - const std::string _stackTrace; + const std::vector<void*> _stackFrames; mutable ::std::string _str; // Initialized lazily in what(). }; |