Return a datum holding an error with code and message.
Declared in <bdld_datum.h>
static
Datum
createError(
int code,
bslstl::StringRef const& message,
AllocatorType const& allocator);
Return, by value, a datum having a DatumError value with the specified code and the specified message, using the specified allocator to supply memory (if needed).
a datum holding an error with code and message
| Name | Description |
|---|---|
| code | error code |
| message | optional error message |
| allocator | memory allocator to use |