[#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`. Optionally specify a `basicAllocator` used to supply memory. If `basicAllocator` is 0, the currently installed default allocator is used. == 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); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#