[#BloombergLP-bdld-Datum-createError-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::createError :relfileprefix: ../../../ :mrdocs: `createError` overloads == Synopses Declared in `<bdld_datum.h>` Return, by value, a datum having a `DatumError` value with the specified `code`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] xref:BloombergLP/bdld/Datum/createError-0df.adoc[createError](int code); ---- [.small]#xref:BloombergLP/bdld/Datum/createError-0df.adoc[_» more..._]# 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). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdld/Datum.adoc[Datum] xref:BloombergLP/bdld/Datum/createError-0d2.adoc[createError]( int code, xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& message, xref:BloombergLP/bdld/Datum/AllocatorType.adoc[AllocatorType] const& allocator); ---- [.small]#xref:BloombergLP/bdld/Datum/createError-0d2.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#