A common base type for exceptions thrown by Expected when the caller erroneously requests a value.

Synopsis

Declared in <folly/Expected.h>

template<>
class BadExpectedAccess<void>
    : public std::exception

Base Classes

Name

Description

std::exception

Member Functions

Name

Description

BadExpectedAccess [constructor]

Constructors

operator=

Assignment operators

what [virtual]

Derived Classes

Name

Description

BadExpectedAccess

An exception type thrown by Expected on catastrophic logic errors, i.e., when the caller tries to access the value within an Expected but when the Expected instead contains an error.

Created with MrDocs