Commit 13ae097b authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Fix references to TTransportException

Summary: [Folly] Fix references to `TTransportException` in `folly/io/async/` to refer to `AsyncSocketException`.

Reviewed By: jmswen, knekritz

Differential Revision: D15628173

fbshipit-source-id: f6d36ede5e8b33d9407751733bcc9a7fa764815c
parent 7b7cc4e6
...@@ -529,7 +529,7 @@ class AsyncSSLSocket : public virtual AsyncSocket { ...@@ -529,7 +529,7 @@ class AsyncSSLSocket : public virtual AsyncSocket {
* Get the server name for this SSL connection. * Get the server name for this SSL connection.
* Returns the server name used or the constant value "NONE" when no SSL * Returns the server name used or the constant value "NONE" when no SSL
* session has been established. * session has been established.
* If openssl has no SNI support, throw TTransportException. * If openssl has no SNI support, throw AsyncSocketException.
*/ */
const char* getSSLServerName() const; const char* getSSLServerName() const;
......
...@@ -291,7 +291,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase { ...@@ -291,7 +291,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase {
* listen on the file descriptor. If so the caller should skip calling the * listen on the file descriptor. If so the caller should skip calling the
* corresponding AsyncServerSocket::bind() and listen() methods. * corresponding AsyncServerSocket::bind() and listen() methods.
* *
* On error a TTransportException will be thrown and the caller will retain * On error a AsyncSocketException will be thrown and the caller will retain
* ownership of the file descriptor. * ownership of the file descriptor.
*/ */
void useExistingSocket(NetworkSocket fd); void useExistingSocket(NetworkSocket fd);
...@@ -333,7 +333,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase { ...@@ -333,7 +333,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase {
* *
* This must be called from the primary EventBase thread. * This must be called from the primary EventBase thread.
* *
* Throws TTransportException on error. * Throws AsyncSocketException on error.
*/ */
virtual void bind(const SocketAddress& address); virtual void bind(const SocketAddress& address);
...@@ -342,7 +342,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase { ...@@ -342,7 +342,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase {
* *
* This must be called from the primary EventBase thread. * This must be called from the primary EventBase thread.
* *
* Throws TTransportException on error. * Throws AsyncSocketException on error.
*/ */
virtual void bind(const std::vector<IPAddress>& ipAddresses, uint16_t port); virtual void bind(const std::vector<IPAddress>& ipAddresses, uint16_t port);
...@@ -351,21 +351,21 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase { ...@@ -351,21 +351,21 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase {
* *
* This must be called from the primary EventBase thread. * This must be called from the primary EventBase thread.
* *
* Throws TTransportException on error. * Throws AsyncSocketException on error.
*/ */
virtual void bind(uint16_t port); virtual void bind(uint16_t port);
/** /**
* Get the local address to which the socket is bound. * Get the local address to which the socket is bound.
* *
* Throws TTransportException on error. * Throws AsyncSocketException on error.
*/ */
void getAddress(SocketAddress* addressReturn) const override; void getAddress(SocketAddress* addressReturn) const override;
/** /**
* Get the local address to which the socket is bound. * Get the local address to which the socket is bound.
* *
* Throws TTransportException on error. * Throws AsyncSocketException on error.
*/ */
SocketAddress getAddress() const { SocketAddress getAddress() const {
SocketAddress ret; SocketAddress ret;
...@@ -376,7 +376,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase { ...@@ -376,7 +376,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase {
/** /**
* Get all the local addresses to which the socket is bound. * Get all the local addresses to which the socket is bound.
* *
* Throws TTransportException on error. * Throws AsyncSocketException on error.
*/ */
std::vector<SocketAddress> getAddresses() const; std::vector<SocketAddress> getAddresses() const;
...@@ -398,7 +398,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase { ...@@ -398,7 +398,7 @@ class AsyncServerSocket : public DelayedDestruction, public AsyncSocketBase {
* bind() must be called before calling listen(). * bind() must be called before calling listen().
* listen() must be called from the primary EventBase thread. * listen() must be called from the primary EventBase thread.
* *
* Throws TTransportException on error. * Throws AsyncSocketException on error.
*/ */
virtual void listen(int backlog); virtual void listen(int backlog);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment