LLVM
8.0.1
|
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. More... | |
virtual std::string | message () const |
Return the error message as a string. More... | |
virtual std::error_code | convertToErrorCode () const =0 |
Convert this error to a std::error_code. More... | |
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 |
Definition at line 71 of file Error.h.
References dynamicClassID().
Referenced by isA(), and llvm::ErrorInfo< MSFError, StringError >::isA().
|
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::FileError, llvm::StringError, llvm::ECError, llvm::json::ParseError, llvm::ErrorList, llvm::DWARFDebugNames::SentinelError, llvm::InstrProfError, llvm::orc::SymbolsCouldNotBeRemoved, llvm::orc::rpc::CouldNotNegotiate, llvm::orc::SymbolsNotFound, llvm::orc::rpc::ResponseAbandoned, llvm::orc::FailedToMaterialize, llvm::SymbolRemappingParseError, llvm::coverage::CoverageMapError, llvm::orc::JITSymbolNotFound, llvm::RuntimeDyldError, llvm::orc::DuplicateDefinition, llvm::orc::rpc::ConnectionClosed, llvm::orc::remote::ResourceNotFound< ResourceIdT >, llvm::mca::InstructionError< T >, and llvm::BinaryStreamError.
Referenced by llvm::ErrorList::log(), and message().
|
pure virtual |
Implemented in llvm::ErrorInfo< SymbolsNotFound >, llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< FileError >, llvm::ErrorInfo< SymbolRemappingParseError >, llvm::ErrorInfo< SentinelError >, llvm::ErrorInfo< RawError, StringError >, llvm::ErrorInfo< InstructionError< T > >, llvm::ErrorInfo< ConnectionClosed >, llvm::ErrorInfo< ParseError >, llvm::ErrorInfo< DIAError, StringError >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< CodeViewError, StringError >, llvm::ErrorInfo< RPCFatalError >, llvm::ErrorInfo< DuplicateDefinition >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< SymbolsCouldNotBeRemoved >, llvm::ErrorInfo< CouldNotNegotiate >, llvm::ErrorInfo< ECError >, llvm::ErrorInfo< CoverageMapError >, llvm::ErrorInfo< FailedToMaterialize >, llvm::ErrorInfo< ResourceNotFound< ResourceIdT > >, llvm::ErrorInfo< WindowsManifestError, ECError >, llvm::ErrorInfo< JITSymbolNotFound >, llvm::ErrorInfo< ResponseAbandoned >, llvm::ErrorInfo< InstrProfError >, and llvm::ErrorInfo< MSFError, StringError >.
Referenced by classID().
Reimplemented in llvm::ErrorInfo< SymbolsNotFound >, llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< FileError >, llvm::ErrorInfo< SymbolRemappingParseError >, llvm::ErrorInfo< SentinelError >, llvm::ErrorInfo< RawError, StringError >, llvm::ErrorInfo< InstructionError< T > >, llvm::ErrorInfo< ConnectionClosed >, llvm::ErrorInfo< ParseError >, llvm::ErrorInfo< DIAError, StringError >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< CodeViewError, StringError >, llvm::ErrorInfo< RPCFatalError >, llvm::ErrorInfo< DuplicateDefinition >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< SymbolsCouldNotBeRemoved >, llvm::ErrorInfo< CouldNotNegotiate >, llvm::ErrorInfo< ECError >, llvm::ErrorInfo< CoverageMapError >, llvm::ErrorInfo< FailedToMaterialize >, llvm::ErrorInfo< ResourceNotFound< ResourceIdT > >, llvm::ErrorInfo< WindowsManifestError, ECError >, llvm::ErrorInfo< JITSymbolNotFound >, llvm::ErrorInfo< ResponseAbandoned >, llvm::ErrorInfo< InstrProfError >, and llvm::ErrorInfo< MSFError, StringError >.
Definition at line 78 of file Error.h.
References classID().
|
inline |
|
pure virtual |
Print an error message to an output stream.
Implemented in llvm::FileError, llvm::StringError, llvm::ECError, llvm::json::ParseError, llvm::ErrorList, llvm::DWARFDebugNames::SentinelError, llvm::InstrProfError, llvm::orc::SymbolsCouldNotBeRemoved, llvm::orc::rpc::CouldNotNegotiate, llvm::orc::SymbolsNotFound, llvm::orc::rpc::ResponseAbandoned, llvm::orc::FailedToMaterialize, llvm::coverage::CoverageMapError, llvm::SymbolRemappingParseError, llvm::orc::JITSymbolNotFound, llvm::orc::DuplicateDefinition, llvm::orc::rpc::ConnectionClosed, llvm::RuntimeDyldError, llvm::orc::remote::ResourceNotFound< ResourceIdT >, llvm::windows_manifest::WindowsManifestError, llvm::mca::InstructionError< T >, and llvm::BinaryStreamError.
Referenced by message(), and llvm::Expected< T >::operator*().
|
inlinevirtual |
Return the error message as a string.
Reimplemented in llvm::InstrProfError, and llvm::coverage::CoverageMapError.
Definition at line 57 of file Error.h.
References convertToErrorCode(), log(), and llvm::raw_string_ostream::str().
Referenced by annotateAllFunctions(), llvm::DWARFContext::dumpWarning(), getMinVisibility(), and llvm::toString().