LLVM 20.0.0git
|
Base class for error info classes. More...
#include "llvm/Support/Error.h"
Public Member Functions | |
virtual | ~ErrorInfoBase ()=default |
virtual void | log (raw_ostream &OS) const =0 |
Print an error message to an output stream. | |
virtual std::string | message () const |
Return the error message as a string. | |
virtual std::error_code | convertToErrorCode () const =0 |
Convert this error to a std::error_code. | |
virtual const void * | dynamicClassID () const =0 |
virtual bool | isA (const void *const ClassID) const |
template<typename ErrorInfoT > | |
bool | isA () const |
Static Public Member Functions | |
static const void * | classID () |
Base class for error info classes.
Do not extend this directly: Extend the ErrorInfo template subclass instead.
|
virtualdefault |
|
inlinestatic |
|
pure virtual |
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.
Implemented in llvm::CGDataError, llvm::DWARFDebugNames::SentinelError, llvm::ResolverError, llvm::DWPError, llvm::jitlink::JITLinkError, llvm::orc::ResourceTrackerDefunct, llvm::orc::FailedToMaterialize, llvm::orc::UnsatisfiedSymbolDependencies, llvm::orc::SymbolsNotFound, llvm::orc::SymbolsCouldNotBeRemoved, llvm::orc::MissingSymbolDefinitions, llvm::orc::UnexpectedSymbolDefinitions, llvm::orc::DuplicateDefinition, llvm::orc::JITSymbolNotFound, llvm::RuntimeDyldError, llvm::LLVMRemarkSetupErrorInfo< ThisError >, llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupFileError >, llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupFormatError >, llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupPatternError >, llvm::mca::RecycledInstErr, llvm::mca::InstStreamPause, llvm::mca::InstructionError< T >, llvm::coverage::CoverageMapError, llvm::InstrProfError, llvm::SymbolRemappingParseError, llvm::remarks::EndOfFileError, llvm::BinaryStreamError, llvm::ErrorList, llvm::ECError, llvm::StringError, llvm::FileError, llvm::json::ParseError, llvm::MachO::TextAPIError, llvm::OverflowError, llvm::UndefVarError, llvm::ErrorDiagnostic, llvm::NotFoundError, llvm::ErrorReported, and llvm::remarks::YAMLParseError.
Referenced by llvm::errorToErrorCodeAndEmitErrors(), and llvm::LLVMRemarkSetupErrorInfo< ThisError >::LLVMRemarkSetupErrorInfo().
|
pure virtual |
Implemented in llvm::ErrorInfo< ThisErrT, ParentErrT >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< CGDataError >, llvm::ErrorInfo< SentinelError >, llvm::ErrorInfo< DWPError >, llvm::ErrorInfo< ECError >, llvm::ErrorInfo< ErrorDiagnostic >, llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< ErrorReported >, llvm::ErrorInfo< FileError >, llvm::ErrorInfo< HTTPServerError, ECError >, llvm::ErrorInfo< InstrProfError >, llvm::ErrorInfo< ThisError >, llvm::ErrorInfo< LLVMRemarkSetupFileError >, llvm::ErrorInfo< LLVMRemarkSetupFormatError >, llvm::ErrorInfo< LLVMRemarkSetupPatternError >, llvm::ErrorInfo< TextAPIError >, llvm::ErrorInfo< NotFoundError >, llvm::ErrorInfo< OverflowError >, llvm::ErrorInfo< ResolverError >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< SymbolRemappingParseError >, llvm::ErrorInfo< UndefVarError >, llvm::ErrorInfo< CodeViewError, StringError >, llvm::ErrorInfo< CoverageMapError >, llvm::ErrorInfo< JITLinkError >, llvm::ErrorInfo< ParseError >, llvm::ErrorInfo< InstStreamPause >, llvm::ErrorInfo< InstructionError< T > >, llvm::ErrorInfo< RecycledInstErr >, llvm::ErrorInfo< MSFError, StringError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< DuplicateDefinition >, llvm::ErrorInfo< FailedToMaterialize >, llvm::ErrorInfo< JITSymbolNotFound >, llvm::ErrorInfo< MissingSymbolDefinitions >, llvm::ErrorInfo< ResourceTrackerDefunct >, llvm::ErrorInfo< SymbolsCouldNotBeRemoved >, llvm::ErrorInfo< SymbolsNotFound >, llvm::ErrorInfo< UnexpectedSymbolDefinitions >, llvm::ErrorInfo< UnsatisfiedSymbolDependencies >, llvm::ErrorInfo< DIAError, StringError >, llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< RawError, StringError >, llvm::ErrorInfo< EndOfFileError >, llvm::ErrorInfo< YAMLParseError >, and llvm::ErrorInfo< WindowsManifestError, ECError >.
|
inline |
Reimplemented in llvm::ErrorInfo< ThisErrT, ParentErrT >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< CGDataError >, llvm::ErrorInfo< SentinelError >, llvm::ErrorInfo< DWPError >, llvm::ErrorInfo< ECError >, llvm::ErrorInfo< ErrorDiagnostic >, llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< ErrorReported >, llvm::ErrorInfo< FileError >, llvm::ErrorInfo< HTTPServerError, ECError >, llvm::ErrorInfo< InstrProfError >, llvm::ErrorInfo< ThisError >, llvm::ErrorInfo< LLVMRemarkSetupFileError >, llvm::ErrorInfo< LLVMRemarkSetupFormatError >, llvm::ErrorInfo< LLVMRemarkSetupPatternError >, llvm::ErrorInfo< TextAPIError >, llvm::ErrorInfo< NotFoundError >, llvm::ErrorInfo< OverflowError >, llvm::ErrorInfo< ResolverError >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< SymbolRemappingParseError >, llvm::ErrorInfo< UndefVarError >, llvm::ErrorInfo< CodeViewError, StringError >, llvm::ErrorInfo< CoverageMapError >, llvm::ErrorInfo< JITLinkError >, llvm::ErrorInfo< ParseError >, llvm::ErrorInfo< InstStreamPause >, llvm::ErrorInfo< InstructionError< T > >, llvm::ErrorInfo< RecycledInstErr >, llvm::ErrorInfo< MSFError, StringError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< DuplicateDefinition >, llvm::ErrorInfo< FailedToMaterialize >, llvm::ErrorInfo< JITSymbolNotFound >, llvm::ErrorInfo< MissingSymbolDefinitions >, llvm::ErrorInfo< ResourceTrackerDefunct >, llvm::ErrorInfo< SymbolsCouldNotBeRemoved >, llvm::ErrorInfo< SymbolsNotFound >, llvm::ErrorInfo< UnexpectedSymbolDefinitions >, llvm::ErrorInfo< UnsatisfiedSymbolDependencies >, llvm::ErrorInfo< DIAError, StringError >, llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< RawError, StringError >, llvm::ErrorInfo< EndOfFileError >, llvm::ErrorInfo< YAMLParseError >, and llvm::ErrorInfo< WindowsManifestError, ECError >.
Definition at line 74 of file Error.h.
References classID().
|
pure virtual |
Print an error message to an output stream.
Implemented in llvm::SymbolRemappingParseError, llvm::json::ParseError, llvm::CGDataError, llvm::DWARFDebugNames::SentinelError, llvm::ResolverError, llvm::HTTPServerError, llvm::DWPError, llvm::jitlink::JITLinkError, llvm::orc::ResourceTrackerDefunct, llvm::orc::FailedToMaterialize, llvm::orc::UnsatisfiedSymbolDependencies, llvm::orc::SymbolsNotFound, llvm::orc::SymbolsCouldNotBeRemoved, llvm::orc::MissingSymbolDefinitions, llvm::orc::UnexpectedSymbolDefinitions, llvm::orc::DuplicateDefinition, llvm::orc::JITSymbolNotFound, llvm::RuntimeDyldError, llvm::LLVMRemarkSetupErrorInfo< ThisError >, llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupFileError >, llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupFormatError >, llvm::LLVMRemarkSetupErrorInfo< LLVMRemarkSetupPatternError >, llvm::mca::RecycledInstErr, llvm::mca::InstStreamPause, llvm::mca::InstructionError< T >, llvm::coverage::CoverageMapError, llvm::InstrProfError, llvm::remarks::EndOfFileError, llvm::BinaryStreamError, llvm::ErrorList, llvm::ECError, llvm::StringError, llvm::FileError, llvm::MachO::TextAPIError, llvm::windows_manifest::WindowsManifestError, llvm::OverflowError, llvm::UndefVarError, llvm::ErrorDiagnostic, llvm::NotFoundError, llvm::ErrorReported, and llvm::remarks::YAMLParseError.
Referenced by message().
|
inlinevirtual |
Return the error message as a string.
Reimplemented in llvm::CGDataError, llvm::coverage::CoverageMapError, and llvm::InstrProfError.
Definition at line 53 of file Error.h.
Referenced by annotateAllFunctions(), llvm::Interpreter::create(), llvm::dlltoolDriverMain(), llvm::errorToErrorCodeAndEmitErrors(), fatalOpenError(), llvm::getLazyIRModule(), llvm::libDriverMain(), LLVMGetBitcodeModuleInContext(), LLVMParseBitcodeInContext(), llvm::LLVMRemarkSetupErrorInfo< ThisError >::LLVMRemarkSetupErrorInfo(), llvm::parseIR(), llvm::symbolize::JSONPrinter::printError(), and llvm::MemProfUsePass::run().