From: Neel Goyal Date: Tue, 10 May 2016 23:23:24 +0000 (-0700) Subject: Add NETWORK_ERROR to switch statement X-Git-Tag: 2016.07.26~251 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bc9992bfc43a67f5405a9918116e17bfbea67b47;p=folly.git Add NETWORK_ERROR to switch statement Summary: Add NETWOR_ERROR to switch so it doesn't fall into Invalid Exception block. Differential Revision: D3282448 fbshipit-source-id: 2cc5d21e436e6ac8f2f6581d99341ac47cf5b023 --- diff --git a/folly/io/async/AsyncSocketException.h b/folly/io/async/AsyncSocketException.h index 85054d86..fe087e8f 100644 --- a/folly/io/async/AsyncSocketException.h +++ b/folly/io/async/AsyncSocketException.h @@ -96,6 +96,8 @@ class AsyncSocketException : public std::runtime_error { return "Could not bind"; case SASL_HANDSHAKE_TIMEOUT: return "SASL handshake timeout"; + case NETWORK_ERROR: + return "Network error"; default: return "(Invalid exception type)"; }