commit | 16cf270283cd08e53467baa765b05c0427a4f5b8 | [log] [tgz] |
---|---|---|
author | dweatherford <dev-null@apache.org> | Fri Dec 21 07:07:31 2007 +0000 |
committer | dweatherford <dev-null@apache.org> | Fri Dec 21 07:07:31 2007 +0000 |
tree | ffa1212f0dd77b34bea3fd2f2d05d35528e2c258 | |
parent | eaa61e43630c68ee2e98f7b649047e45c524f9d8 [diff] |
[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 c21719b..39c65dd 100644 --- a/lib/cpp/src/transport/TTransportException.h +++ b/lib/cpp/src/transport/TTransportException.h
@@ -69,7 +69,7 @@ * * @return Error code */ - TTransportExceptionType getType() { + TTransportExceptionType getType() const throw() { return type_; }