createError overloads

Synopses

Declared in <bdld_datum.h>

Return a datum holding an error with the specified code.

static
Datum
createError(int code);

Return a datum holding an error with code and message.

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

Return Value

  • a datum holding an error with the specified code

  • a datum holding an error with code and message

Parameters

Name

Description

code

error code

message

optional error message

allocator

memory allocator to use

Created with MrDocs