Exception thrown by folly asynchronous socket operations.

Synopsis

Declared in <folly/io/async/AsyncSocketException.h>

class AsyncSocketException
    : public std::runtime_error

Base Classes

Name

Description

std::runtime_error

Enums

Name

Description

AsyncSocketExceptionType

Categories of asynchronous socket failures.

Member Functions

Name

Description

AsyncSocketException [constructor]

Asserts (in debug builds) the errno value to be nonnegative to help with linux io‐uring, which passes errno values as negative numbers. But permits a special negative number which does not map to any actual errno errors.

operator=

getErrno

Returns the errno value associated with this exception.

getType

Returns the category of this exception.

what [virtual]

Protected Static Member Functions

Name

Description

getExceptionTypeString

Returns the string of exception type.

getMessage

Returns a message based on the input.

Protected Data Members

Name

Description

errno_

A copy of the errno.

type_

Error code

Derived Classes

Name

Description

SSLException

Exception describing an SSL error and its underlying OpenSSL code.

Created with MrDocs