class ErrorList
Declaration
class ErrorList : public ErrorInfo { /* full declaration omitted */ };
Description
Special ErrorInfo subclass representing a list of ErrorInfos. Instances of this class are constructed by joinError.
Declared at: llvm/include/llvm/Support/Error.h:362
Inherits from: ErrorInfo
Member Variables
- private std::vector<std::unique_ptr<ErrorInfoBase>> Payloads
- public static char ID
Method Overview
- private ErrorList(std::unique_ptr<ErrorInfoBase> Payload1, std::unique_ptr<ErrorInfoBase> Payload2)
- public std::error_code convertToErrorCode() const
- private static llvm::Error join(llvm::Error E1, llvm::Error E2)
- public void log(llvm::raw_ostream & OS) const
Methods
¶ErrorList(std::unique_ptr<ErrorInfoBase> Payload1,
std::unique_ptr<ErrorInfoBase> Payload2)
ErrorList(std::unique_ptr<ErrorInfoBase> Payload1,
std::unique_ptr<ErrorInfoBase> Payload2)
Declared at: llvm/include/llvm/Support/Error.h:386
Parameters
- std::unique_ptr<ErrorInfoBase> Payload1
- std::unique_ptr<ErrorInfoBase> Payload2
¶std::error_code convertToErrorCode() const
std::error_code convertToErrorCode() const
Description
Convert this error to a std::error_code. This is a temporary crutch to enable interaction with code still using std::error_code. It will be removed in the future.
Declared at: llvm/include/llvm/Support/Error.h:380
¶static llvm::Error join(llvm::Error E1,
llvm::Error E2)
static llvm::Error join(llvm::Error E1,
llvm::Error E2)
Declared at: llvm/include/llvm/Support/Error.h:394
Parameters
- llvm::Error E1
- llvm::Error E2
¶void log(llvm::raw_ostream& OS) const
void log(llvm::raw_ostream& OS) const
Description
Print an error message to an output stream.
Declared at: llvm/include/llvm/Support/Error.h:372