BloombergLP::bdld::Datum::createError

createError overloads

Synopses

Declared in <bdld_datum.h>

Return a datum holding an error with the specified code.

static
Datum
createError(int code);
» more...

Return a datum holding an error with code and message.

static
Datum
createError(
    int code,
    bslstl::StringRef const& message,
    AllocatorType const& allocator);
» more...

Return Value

  • a datum holding an error with the specified code
  • a datum holding an error with code and message

Parameters

NameDescription
codeerror code
messageoptional error message
allocatormemory allocator to use