mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
Thrift: Exception message is protected and accessible to derived classes.
Summary: Exception message is protected and accessible to derived classes. Reviewed By: Karl Revert Plan: revertible Notes: git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664971 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f53b5cfed2
commit
92a2eac8cb
@ -23,7 +23,7 @@ public:
|
||||
|
||||
virtual ~TException() throw() {}
|
||||
|
||||
const char* what() const throw() {
|
||||
virtual const char* what() const throw() {
|
||||
if (message_.empty()) {
|
||||
return "Default TException.";
|
||||
} else {
|
||||
@ -31,7 +31,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
private:
|
||||
protected:
|
||||
std::string message_;
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user