[#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. Note that the `message` is held by the reference and not copied. == Synopsis Declared in `<bdld_datumerror.h>` [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]#