Commit 1c2dcb1d authored by Yair Gottdenker's avatar Yair Gottdenker Committed by Facebook GitHub Bot

adding CANCELED to AsyncSocketExceptionType

Summary: adding CANCELED to AsyncSocketExceptionType

Reviewed By: yfeldblum

Differential Revision: D22345735

fbshipit-source-id: 73c61b409531d71a39d82a46d9c0ebc720801c45
parent 376d6554
...@@ -54,6 +54,8 @@ namespace folly { ...@@ -54,6 +54,8 @@ namespace folly {
return "Network error"; return "Network error";
case EARLY_DATA_REJECTED: case EARLY_DATA_REJECTED:
return "Early data rejected"; return "Early data rejected";
case CANCELED:
return "IO operation was canceled";
default: default:
return "(Invalid exception type)"; return "(Invalid exception type)";
} }
......
...@@ -43,6 +43,7 @@ class FOLLY_EXPORT AsyncSocketException : public std::runtime_error { ...@@ -43,6 +43,7 @@ class FOLLY_EXPORT AsyncSocketException : public std::runtime_error {
// SASL_HANDSHAKE_TIMEOUT = 14, // no longer used // SASL_HANDSHAKE_TIMEOUT = 14, // no longer used
NETWORK_ERROR = 15, NETWORK_ERROR = 15,
EARLY_DATA_REJECTED = 16, EARLY_DATA_REJECTED = 16,
CANCELED = 17,
}; };
AsyncSocketException( AsyncSocketException(
......
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