[#BloombergLP-bdljsn-Error-2constructor-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Error.adoc[Error]::Error :relfileprefix: ../../../ :mrdocs: Create an `Error` object by moving from the specified `original` using the specified `basicAllocator`. == Synopsis Declared in `<bdljsn_error.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Error( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Error>] original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- == Description Create an `Error` object having the same value as the specified `original` object, and using the specified `basicAllocator` to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. The allocator of `original` remains unchanged. 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; otherwise `original` is unchanged and an exception may be thrown. == Parameters [cols="1,4"] |=== | Name| Description | *original* | the object to move from | *basicAllocator* | memory allocator; 0 uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#