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.

Synopsis

Declared in <folly/Expected.h>

template<class Error>
class BadExpectedAccess
    : public BadExpectedAccess<void>

Base Classes

Name

Description

BadExpectedAccess<void>

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

Member Functions

Name

Description

BadExpectedAccess [constructor]

Constructs the exception from the error that could not be accessed.

operator=

Assignment operators

error

error overloads

what [virtual]

Specializations

Name

Description

BadExpectedAccess<void>

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

Created with MrDocs