[#BloombergLP-bdljsn-Error-2constructor-06] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Error.adoc[Error]::Error :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<bdljsn_error.h>` Create an `Error` object having the default value. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Error/2constructor-01.adoc[Error](); ---- [.small]#xref:BloombergLP/bdljsn/Error/2constructor-01.adoc[_» more..._]# Create an `Error` object having the same value and the same allocator as the specified `original` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Error/2constructor-0dc.adoc[Error](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Error>] original) noexcept; ---- [.small]#xref:BloombergLP/bdljsn/Error/2constructor-0dc.adoc[_» more..._]# Create an `Error` object having the default value, using the specified `basicAllocator` to supply memory. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/bdljsn/Error/2constructor-07.adoc[Error](xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- [.small]#xref:BloombergLP/bdljsn/Error/2constructor-07.adoc[_» more..._]# Create an `Error` object by moving from the specified `original` using the specified `basicAllocator`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Error/2constructor-02.adoc[Error]( xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef<Error>] original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator); ---- [.small]#xref:BloombergLP/bdljsn/Error/2constructor-02.adoc[_» more..._]# Create an `Error` object having the value of the specified `original` object. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Error/2constructor-0de.adoc[Error]( xref:BloombergLP/bdljsn/Error.adoc[Error] const& original, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdljsn/Error/2constructor-0de.adoc[_» more..._]# Create an `Error` object having the specified `location` and `message`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bdljsn/Error/2constructor-0d1.adoc[Error]( xref:BloombergLP/bdljsn/Location.adoc[Location] const& location, std::string_view const& message, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- [.small]#xref:BloombergLP/bdljsn/Error/2constructor-0d1.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *original* | the object to move from | *basicAllocator* | memory allocator; 0 uses the default | *location* | position in the document where the error occurred | *message* | description of the error |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#