Android-cuttlefish cvd tool
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
cuttlefish::StackTraceError< E > Class Template Reference

#include <error_type.h>

Public Types

using ValueOrBool = std::conditional_t< std::is_void_v< E >, bool, E >
 

Public Member Functions

 StackTraceError ()
 
 StackTraceError (StackTraceEntry first_entry)
 
 StackTraceError (std::vector< StackTraceEntry > stack)
 
 StackTraceError (ValueOrBool value)
 
 StackTraceError (ValueOrBool value, std::vector< StackTraceEntry > stack)
 
 StackTraceError (ValueOrBool value, StackTraceEntry first_entry)
 
template<typename E2 >
requires std::is_void_v<E>
 StackTraceError (StackTraceError< E2 > other)
 
StackTraceError< E > & PushEntry (StackTraceEntry entry) &
 
StackTraceError< E > PushEntry (StackTraceEntry entry) &&
 
const std::vector< StackTraceEntry > & Stack () const
 
std::string Message () const
 
std::string Trace () const
 
std::string FormatForEnv (bool color=ShouldColorStdout()) const
 
template<typename T >
 operator tl::expected< T, StackTraceError > () &&
 
ValueOrBool & Value ()
 
const ValueOrBool & Value () const
 
ValueOrBool & operator* ()
 
const ValueOrBool & operator* () const
 
template<typename E2 >
StackTraceError< E2 > WithValue (E2 value) &
 
template<typename E2 >
StackTraceError< E2 > WithValue (E2 value) &&
 
 operator StackTraceError< void > () &
 
 operator StackTraceError< void > () &&
 
std::string Message () const
 
std::string Trace () const
 
std::string FormatForEnv (bool color) const
 

Private Attributes

ValueOrBool value_
 
std::vector< StackTraceEntry > stack_
 

Friends

class StackTraceError< void >
 

Member Typedef Documentation

◆ ValueOrBool

template<typename E >
using cuttlefish::StackTraceError< E >::ValueOrBool = std::conditional_t<std::is_void_v<E>, bool, E>

Constructor & Destructor Documentation

◆ StackTraceError() [1/7]

template<typename E >
cuttlefish::StackTraceError< E >::StackTraceError ( )
inlineexplicit

◆ StackTraceError() [2/7]

template<typename E >
cuttlefish::StackTraceError< E >::StackTraceError ( StackTraceEntry  first_entry)
inlineexplicit

◆ StackTraceError() [3/7]

template<typename E >
cuttlefish::StackTraceError< E >::StackTraceError ( std::vector< StackTraceEntry >  stack)
inlineexplicit

◆ StackTraceError() [4/7]

template<typename E >
cuttlefish::StackTraceError< E >::StackTraceError ( ValueOrBool  value)
inlineexplicit

◆ StackTraceError() [5/7]

template<typename E >
cuttlefish::StackTraceError< E >::StackTraceError ( ValueOrBool  value,
std::vector< StackTraceEntry >  stack 
)
inlineexplicit

◆ StackTraceError() [6/7]

template<typename E >
cuttlefish::StackTraceError< E >::StackTraceError ( ValueOrBool  value,
StackTraceEntry  first_entry 
)
inlineexplicit

◆ StackTraceError() [7/7]

template<typename E >
template<typename E2 >
requires std::is_void_v<E>
cuttlefish::StackTraceError< E >::StackTraceError ( StackTraceError< E2 >  other)
inlineexplicit

Member Function Documentation

◆ FormatForEnv() [1/2]

std::string cuttlefish::StackTraceError< void >::FormatForEnv ( bool  color) const

◆ FormatForEnv() [2/2]

template<typename E >
std::string cuttlefish::StackTraceError< E >::FormatForEnv ( bool  color = ShouldColorStdout()) const

◆ Message() [1/2]

std::string cuttlefish::StackTraceError< void >::Message ( ) const

◆ Message() [2/2]

template<typename E >
std::string cuttlefish::StackTraceError< E >::Message ( ) const

◆ operator StackTraceError< void >() [1/2]

template<typename E >
cuttlefish::StackTraceError< E >::operator StackTraceError< void > ( ) &
inline

◆ operator StackTraceError< void >() [2/2]

template<typename E >
cuttlefish::StackTraceError< E >::operator StackTraceError< void > ( ) &&
inline

◆ operator tl::expected< T, StackTraceError >()

template<typename E >
template<typename T >
cuttlefish::StackTraceError< E >::operator tl::expected< T, StackTraceError > ( ) &&
inline

◆ operator*() [1/2]

template<typename E >
ValueOrBool & cuttlefish::StackTraceError< E >::operator* ( )
inline

◆ operator*() [2/2]

template<typename E >
const ValueOrBool & cuttlefish::StackTraceError< E >::operator* ( ) const
inline

◆ PushEntry() [1/2]

template<typename E >
StackTraceError< E > & cuttlefish::StackTraceError< E >::PushEntry ( StackTraceEntry  entry) &
inline

◆ PushEntry() [2/2]

template<typename E >
StackTraceError< E > cuttlefish::StackTraceError< E >::PushEntry ( StackTraceEntry  entry) &&
inline

◆ Stack()

template<typename E >
const std::vector< StackTraceEntry > & cuttlefish::StackTraceError< E >::Stack ( ) const
inline

◆ Trace() [1/2]

std::string cuttlefish::StackTraceError< void >::Trace ( ) const

◆ Trace() [2/2]

template<typename E >
std::string cuttlefish::StackTraceError< E >::Trace ( ) const

◆ Value() [1/2]

template<typename E >
ValueOrBool & cuttlefish::StackTraceError< E >::Value ( )
inline

◆ Value() [2/2]

template<typename E >
const ValueOrBool & cuttlefish::StackTraceError< E >::Value ( ) const
inline

◆ WithValue() [1/2]

template<typename E >
template<typename E2 >
StackTraceError< E2 > cuttlefish::StackTraceError< E >::WithValue ( E2  value) &
inline

◆ WithValue() [2/2]

template<typename E >
template<typename E2 >
StackTraceError< E2 > cuttlefish::StackTraceError< E >::WithValue ( E2  value) &&
inline

Friends And Related Function Documentation

◆ StackTraceError< void >

template<typename E >
friend class StackTraceError< void >
friend

Member Data Documentation

◆ stack_

template<typename E >
std::vector<StackTraceEntry> cuttlefish::StackTraceError< E >::stack_
private

◆ value_

template<typename E >
ValueOrBool cuttlefish::StackTraceError< E >::value_
private

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