[#BloombergLP-bdld-DatumError-2constructor-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/DatumError.adoc[DatumError]::DatumError
:relfileprefix: ../../../
:mrdocs:

Create a `DatumError` object having the specified error `code` value and the specified error `message` value&period; Note that the `message` is held by the reference and not copied&period;

== Synopsis

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

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


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