BloombergLP::bdljsn::Error::Error

Constructors

Synopses

Declared in <bdljsn_error.h>

Create an Error object having the default value.

Error();
» more...

Create an Error object having the same value and the same allocator as the specified original object.

Error(bslmf::MovableRef<Error> original) noexcept;
» more...

Create an Error object having the default value, using the specified basicAllocator to supply memory.

explicit
Error(bslma::Allocator* basicAllocator);
» more...

Create an Error object by moving from the specified original using the specified basicAllocator.

Error(
    bslmf::MovableRef<Error> original,
    bslma::Allocator* basicAllocator);
» more...

Create an Error object having the value of the specified original object.

Error(
    Error const& original,
    bslma::Allocator* basicAllocator = 0);
» more...

Create an Error object having the specified location and message.

Error(
    Location const& location,
    std::string_view const& message,
    bslma::Allocator* basicAllocator = 0);
» more...

Parameters

NameDescription
originalthe object to move from
basicAllocatormemory allocator; 0 uses the default
locationposition in the document where the error occurred
messagedescription of the error