A rich error carrying a user‐defined base type and a formatted message.
Synopsis
Declared in <folly/result/rich_error.h>
template<typename UserBase>
class [[nodiscard]] rich_error final
: public /* implementation-defined */
, public std::exception
Description
See docs/rich_error.md.
Base Classes
Name |
Description |
|
|
|
Type Aliases
Name |
Description |
|
The user‐defined base type this rich error was built from. |
The exception‐hint type list used by |
Member Functions
Name |
Description |
|
Constructs an empty rich error. |
|
Constructs a rich error from an immortal base instance. |
|
Constructs a rich error by forwarding arguments to the user base. |
|
Returns the error message. |
Non-Member Functions
Name |
Description |
Builds an error from a message and multiple codes. |
|
Builds an error from a single code and a format message. |
|
|
Builds an error from a single code and a format message. |
|
Builds an error from a message and multiple codes. |
Builds an error from a single code and a format message. |
|
Builds an error from a message and multiple codes. |
Return Value
|
Note
|
The return value should not be discarded. |
Created with MrDocs