[#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`&period; Optionally specify a `basicAllocator` used to supply memory&period; If `basicAllocator` is 0, the currently installed default allocator is used&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
Error(
    xref:BloombergLP/bdljsn/Location.adoc[Location] const& location,
    std::string&lowbar;view const& message,
    xref:BloombergLP/bslma/Allocator.adoc[bslma::Allocator]* basicAllocator = 0);
----


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