proxygen
folly::SSLException Class Reference

#include <SSLErrors.h>

Inheritance diagram for folly::SSLException:
folly::AsyncSocketException wangle::FizzHandshakeException

Public Member Functions

 SSLException (int sslError, unsigned long errError, int sslOperationReturnValue, int errno_copy)
 
 SSLException (SSLError error)
 
SSLError getSSLError () const
 
- Public Member Functions inherited from folly::AsyncSocketException
 AsyncSocketException (AsyncSocketExceptionType type, const std::string &message, int errnoCopy=0)
 
AsyncSocketExceptionType getType () const noexcept
 
int getErrno () const noexcept
 

Private Attributes

SSLError sslError
 

Additional Inherited Members

- Public Types inherited from folly::AsyncSocketException
enum  AsyncSocketExceptionType {
  UNKNOWN = 0, NOT_OPEN = 1, ALREADY_OPEN = 2, TIMED_OUT = 3,
  END_OF_FILE = 4, INTERRUPTED = 5, BAD_ARGS = 6, CORRUPTED_DATA = 7,
  INTERNAL_ERROR = 8, NOT_SUPPORTED = 9, INVALID_STATE = 10, SSL_ERROR = 12,
  COULD_NOT_BIND = 13, SASL_HANDSHAKE_TIMEOUT = 14, NETWORK_ERROR = 15, EARLY_DATA_REJECTED = 16
}
 
- Static Protected Member Functions inherited from folly::AsyncSocketException
static folly::StringPiece getExceptionTypeString (AsyncSocketExceptionType type)
 
static std::string getMessage (AsyncSocketExceptionType type, const std::string &message, int errnoCopy)
 
- Protected Attributes inherited from folly::AsyncSocketException
AsyncSocketExceptionType type_
 
int errno_
 

Detailed Description

Definition at line 31 of file SSLErrors.h.

Constructor & Destructor Documentation

folly::SSLException::SSLException ( int  sslError,
unsigned long  errError,
int  sslOperationReturnValue,
int  errno_copy 
)

Definition at line 105 of file SSLErrors.cpp.

References folly::EOF_ERROR, folly::NETWORK_ERROR, and folly::SSL_ERROR.

111  exTypefromSSLErrInfo(sslErr, errError, sslOperationReturnValue),
112  decodeOpenSSLError(sslErr, errError, sslOperationReturnValue),
113  sslErr == SSL_ERROR_SYSCALL ? errno_copy : 0) {
114  if (sslErr == SSL_ERROR_ZERO_RETURN) {
116  } else if (sslErr == SSL_ERROR_SYSCALL) {
118  } else {
119  // Conservatively assume that this is an SSL error
121  }
122 }
AsyncSocketException(AsyncSocketExceptionType type, const std::string &message, int errnoCopy=0)
SSLError sslError
Definition: SSLErrors.h:46
folly::SSLException::SSLException ( SSLError  error)
explicit

Definition at line 124 of file SSLErrors.cpp.

126  exTypefromSSLErr(error),
127  getSSLErrorString(error).str(),
128  0),
129  sslError(error) {}
requires And< SemiMovable< VN >... > &&SemiMovable< E > auto error(E e)
Definition: error.h:48
AsyncSocketException(AsyncSocketExceptionType type, const std::string &message, int errnoCopy=0)
SSLError sslError
Definition: SSLErrors.h:46

Member Function Documentation

SSLError folly::SSLException::getSSLError ( ) const
inline

Definition at line 41 of file SSLErrors.h.

41  {
42  return sslError;
43  }
SSLError sslError
Definition: SSLErrors.h:46

Member Data Documentation

SSLError folly::SSLException::sslError
private

Definition at line 46 of file SSLErrors.h.


The documentation for this class was generated from the following files: