[#BloombergLP-bdld-Datum-createError-0d2]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::createError
:relfileprefix: ../../../
:mrdocs:

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)&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datum&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdld/Datum.adoc[Datum]
createError(
    int code,
    xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& message,
    xref:BloombergLP/bdld/Datum/AllocatorType.adoc[AllocatorType] const& allocator);
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
