[#BloombergLP-bdljsn-Error-2constructor-02]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Error.adoc[Error]::Error
:relfileprefix: ../../../
:mrdocs:

Create a `Error` object having the same value as the specified `original` object, and using the specified `basicAllocator` to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period; The allocator of `original` remains unchanged&period; If `original` and the newly created object have the same allocator then the value of `original` becomes unspecified but valid, and no exceptions will be thrown&semi; otherwise `original` is unchanged and an exception may be thrown&period;

== Synopsis

Declared in `&lt;bdljsn&lowbar;error&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Error(
    xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;Error&gt;] original,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator);
----


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