[#BloombergLP-bdljsn-Error-2constructor-0d1] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Error.adoc[Error]::Error :relfileprefix: ../../../ :mrdocs: Create an `Error` object having the specified `location` and `message`. == Synopsis Declared in `<bdljsn_error.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- Error( xref:BloombergLP/bdljsn/Location.adoc[Location] const& location, std::string_view const& message, xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0); ---- == Description Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == Parameters [cols="1,4"] |=== | Name| Description | *location* | position in the document where the error occurred | *message* | description of the error | *basicAllocator* | memory allocator; 0 uses the default |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#