[thrift] Make TTransportException::getType const throw()
authordweatherford <dev-null@apache.org>
Fri, 21 Dec 2007 07:07:31 +0000 (07:07 +0000)
committerdweatherford <dev-null@apache.org>
Fri, 21 Dec 2007 07:07:31 +0000 (07:07 +0000)
Summary: const so that catching via "catch (const TTransportException& e)" works
  properly, and throw() for good convention.
Reviewed By: mcslee
Test Plan: still compiles
Revert: ok

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665403 13f79535-47bb-0310-9956-ffa450edef68

lib/cpp/src/transport/TTransportException.h

index c21719b..39c65dd 100644 (file)
@@ -69,7 +69,7 @@ class TTransportException : public facebook::thrift::TException {
    *
    * @return Error code
    */
-  TTransportExceptionType getType() {
+  TTransportExceptionType getType() const throw() {
     return type_;
   }