folly::exceptionStr

exceptionStr overloads

Synopses

Declared in <folly/ExceptionString.h>

Debug string for an exception: include type and what(), if defined.

fbstring
exceptionStr(std::exception const& e);
» more...

Debug string for an exception referenced by a std::exception_ptr.

fbstring
exceptionStr(std::exception_ptr const& ep);
» more...

Returns a string describing the exception held by ew.

fbstring
exceptionStr(exception_wrapper const& ew);
» more...

Return Value

  • A debug string containing the exception's type and message.
  • A debug string describing the referenced exception.
  • A string describing the wrapped exception.

Parameters

NameDescription
eThe exception to describe.
epThe exception pointer to describe.
ewThe exception wrapper to describe.