proxygen
folly::TypeError Struct Reference

#include <dynamic-inl.h>

Inheritance diagram for folly::TypeError:

Public Member Functions

 TypeError (const std::string &expected, dynamic::Type actual)
 
 TypeError (const std::string &expected, dynamic::Type actual1, dynamic::Type actual2)
 
 TypeError (const TypeError &) noexcept(std::is_nothrow_copy_constructible< std::runtime_error >::value)
 
TypeErroroperator= (const TypeError &) noexcept(std::is_nothrow_copy_assignable< std::runtime_error >::value)
 
 TypeError (TypeError &&) noexcept(std::is_nothrow_move_constructible< std::runtime_error >::value)
 
TypeErroroperator= (TypeError &&) noexcept(std::is_nothrow_move_assignable< std::runtime_error >::value)
 
 ~TypeError () override
 

Detailed Description

Definition at line 131 of file dynamic-inl.h.

Constructor & Destructor Documentation

folly::TypeError::TypeError ( const std::string expected,
dynamic::Type  actual 
)
explicit

Definition at line 49 of file dynamic.cpp.

Referenced by TypeError().

50  : std::runtime_error(sformat(
51  "TypeError: expected dynamic type `{}', but had type `{}'",
52  expected,
53  dynamic::typeName(actual))) {}
const char * typeName() const
Definition: dynamic.cpp:45
std::string sformat(StringPiece fmt, Args &&...args)
Definition: Format.h:280
folly::TypeError::TypeError ( const std::string expected,
dynamic::Type  actual1,
dynamic::Type  actual2 
)
explicit

Definition at line 55 of file dynamic.cpp.

References folly::pushmi::__adl::noexcept(), operator=(), TypeError(), value, and ~TypeError().

59  : std::runtime_error(sformat(
60  "TypeError: expected dynamic types `{}, but had types `{}' and `{}'",
61  expected,
62  dynamic::typeName(actual1),
63  dynamic::typeName(actual2))) {}
const char * typeName() const
Definition: dynamic.cpp:45
std::string sformat(StringPiece fmt, Args &&...args)
Definition: Format.h:280
folly::TypeError::TypeError ( const TypeError ) const
defaultnoexcept
folly::TypeError::TypeError ( TypeError &&  ) const
defaultnoexcept
folly::TypeError::~TypeError ( )
overridedefault

Referenced by TypeError().

Member Function Documentation

TypeError & folly::TypeError::operator= ( const TypeError )
defaultnoexcept

Referenced by TypeError().

TypeError & folly::TypeError::operator= ( TypeError &&  )
defaultnoexcept

The documentation for this struct was generated from the following files: