BloombergLP::bdljsn::Error::Error

Create an Error object having the specified location and message.

Synopsis

Declared in <bdljsn_error.h>

Error(
    Location const& location,
    std::string_view const& message,
    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

NameDescription
locationposition in the document where the error occurred
messagedescription of the error
basicAllocatormemory allocator; 0 uses the default