ΒΆtemplate <typename... HandlerTs>
llvm::Error handleErrors(llvm::Error E,
                         HandlerTs&&... Handlers)

Description

Pass the ErrorInfo(s) contained in E to their respective handlers. Any unhandled errors (or Errors returned by handlers) are re-concatenated and returned. Because this function returns an error, its result must also be checked or returned. If you intend to handle all errors use handleAllErrors (which returns void, and will abort() on unhandled errors) instead.

Declared at: llvm/include/llvm/Support/Error.h:165

Templates

HandlerTs

Parameters

llvm::Error E
HandlerTs&&... Handlers