Dispatch Payload to the first matching handler among Handler and Handlers.

Synopsis

Declared in <llvm/Support/Error.h>

template<
    typename HandlerT,
    typename... HandlerTs>
Error
handleErrorImpl(
    std::unique_ptr<ErrorInfoBase> Payload,
    HandlerT&& Handler,
    HandlerTs&&... Handlers);

Return Value

The Error from the matching handler, or an Error wrapping unhandled Payload.

Parameters

Name

Description

Payload

Error info to match against the handlers.

Handler

First candidate handler.

Handlers

Remaining candidate handlers.

Created with MrDocs