Set the appropriate AsyncSocketExceptionType from SSLException
Summary:
We should use the appropriate AsyncSocketExceptionType when firing SSLExceptions. This derives the type from the constructor args, and introduces a `NETWORK_ERROR` exception type. Open to suggestions on reusing something there.
Additionally, rename getType() to getSSLError() to prevent hiding the AsyncSocketException::getType.
Reviewed By: siyengar
Differential Revision:
D3241204
fb-gh-sync-id:
de631dfb3554177d5bd561f4b91e767c882767d3
fbshipit-source-id:
de631dfb3554177d5bd561f4b91e767c882767d3