BloombergLP::bdljsn::Error::Error

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

Synopsis

Declared in <bdljsn_error.h>

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

Description

Create an Error object having the same value as the specified original object, and using the specified basicAllocator to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The allocator of original remains unchanged. If original and the newly created object have the same allocator then the value of original becomes unspecified but valid, and no exceptions will be thrown; otherwise original is unchanged and an exception may be thrown.

Parameters

NameDescription
originalthe object to move from
basicAllocatormemory allocator; 0 uses the default