From 16cf270283cd08e53467baa765b05c0427a4f5b8 Mon Sep 17 00:00:00 2001 From: dweatherford Date: Fri, 21 Dec 2007 07:07:31 +0000 Subject: [PATCH] [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 --- lib/cpp/src/transport/TTransportException.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_; } -- 2.17.1