[#BloombergLP-bdld-DatumError-2constructor-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/DatumError.adoc[DatumError]::DatumError :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdld_datumerror.h>` Create a `DatumError` object having the default error code of 0 and an empty error message. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdld/DatumError/2constructor-04.adoc[DatumError](); ---- [.small]#xref:BloombergLP/bdld/DatumError/2constructor-04.adoc[_» more..._]# Create a `DatumError` object having the specified error `code` value and and empty error message. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdld/DatumError/2constructor-02.adoc[DatumError](int code); ---- [.small]#xref:BloombergLP/bdld/DatumError/2constructor-02.adoc[_» more..._]# 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdld/DatumError/2constructor-0a.adoc[DatumError]( int code, xref:BloombergLP/bslstl/StringRef.adoc[bslstl::StringRef] const& message); ---- [.small]#xref:BloombergLP/bdld/DatumError/2constructor-0a.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#