llvm::joinErrors

Concatenate errors from E1 followed by those from E2.

Synopsis

Declared in <llvm/Support/Error.h>

Error
joinErrors(
    Error E1,
    Error E2);

Description

The resulting Error is unchecked, and contains the ErrorInfo(s), if any, contained in E1, followed by the ErrorInfo(s), if any, contained in E2.

Return Value

An Error containing the payloads of E1 followed by those of E2.

Parameters

NameDescription
E1First error (or success) whose payloads come first.
E2Second error (or success) whose payloads are appended.