A message that can automatically capture source locations.
Declared in <folly/result/rich_msg.h>
class rich_msg;
Usage: rich_msg msg1{"error: {} at {}", code, line};
| Name | Description |
|---|---|
rich_msg [constructor] | Constructors |
location | Returns the captured source location. |
message | Returns the message text. |
shared_string | Moves out the underlying message string. |
| Name | Description |
|---|---|
make_coded_rich_error | Builds an error from a message and multiple codes. |
make_inheriting_coded_rich_error | Builds an error from a message and multiple codes. |
make_nestable_coded_rich_error | Builds an error from a message and multiple codes. |