/*
- * Copyright 2016 Facebook, Inc.
+ * Copyright 2017 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#pragma once
+#include <stdexcept>
+
#include <folly/Format.h>
#include <folly/io/async/DelayedDestruction.h>
SSL_ERROR = 12,
COULD_NOT_BIND = 13,
SASL_HANDSHAKE_TIMEOUT = 14,
- NETWORK_ERROR = 15
+ NETWORK_ERROR = 15,
+ EARLY_DATA_REJECTED = 16,
};
AsyncSocketException(AsyncSocketExceptionType type,
return "Could not bind";
case SASL_HANDSHAKE_TIMEOUT:
return "SASL handshake timeout";
+ case NETWORK_ERROR:
+ return "Network error";
+ case EARLY_DATA_REJECTED:
+ return "Early data rejected";
default:
return "(Invalid exception type)";
}
}
};
-} // folly
+} // namespace folly