BloombergLP::bdljsn::Error::Error

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

Synopsis

Declared in <bdljsn_error.h>

Error(
    Error const& original,
    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
originalthe object whose value is copied
basicAllocatormemory allocator; 0 uses the default