proxygen
folly::Unexpected< Error >::BadExpectedAccess Class Reference

#include <Expected.h>

Inheritance diagram for folly::Unexpected< Error >::BadExpectedAccess:
folly::BadExpectedAccess

Public Member Functions

 BadExpectedAccess (Error err)
 
Error error () const
 
- Public Member Functions inherited from folly::BadExpectedAccess
 BadExpectedAccess ()
 

Private Attributes

Error error_
 

Detailed Description

template<class Error>
class folly::Unexpected< Error >::BadExpectedAccess

Unexpected::BadExpectedAccess - An exception type thrown by Expected when the user tries to access the nested value but the Expected object is actually storing an error code.

Definition at line 691 of file Expected.h.

Constructor & Destructor Documentation

template<class Error>
folly::Unexpected< Error >::BadExpectedAccess::BadExpectedAccess ( Error  err)
inlineexplicit

Definition at line 693 of file Expected.h.

References folly::gen::move.

Member Function Documentation

template<class Error>
Error folly::Unexpected< Error >::BadExpectedAccess::error ( ) const
inline

The error code that was held by the Expected object when the user erroneously requested the value.

Definition at line 699 of file Expected.h.

699  {
700  return error_;
701  }

Member Data Documentation

template<class Error>
Error folly::Unexpected< Error >::BadExpectedAccess::error_
private

Definition at line 704 of file Expected.h.


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