From: dweatherford Date: Fri, 21 Dec 2007 07:07:31 +0000 (+0000) Subject: [thrift] Make TTransportException::getType const throw() X-Git-Tag: 0.2.0~1069 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=16cf270283cd08e53467baa765b05c0427a4f5b8;p=common%2Fthrift.git [thrift] Make TTransportException::getType const throw() 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 --- diff --git a/lib/cpp/src/transport/TTransportException.h b/lib/cpp/src/transport/TTransportException.h index c21719b2..39c65ddd 100644 --- a/lib/cpp/src/transport/TTransportException.h +++ b/lib/cpp/src/transport/TTransportException.h @@ -69,7 +69,7 @@ class TTransportException : public facebook::thrift::TException { * * @return Error code */ - TTransportExceptionType getType() { + TTransportExceptionType getType() const throw() { return type_; }