|
LLVM
7.0.0
|
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 70 of file Error.h.
References dynamicClassID().
Referenced by isA(), and llvm::ErrorInfo< InstrProfError >::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::StringError, llvm::ECError, llvm::json::ParseError, llvm::ErrorList, llvm::DWARFDebugNames::SentinelError, llvm::InstrProfError, llvm::orc::rpc::CouldNotNegotiate, llvm::orc::rpc::ResponseAbandoned, llvm::orc::SymbolsNotFound, llvm::orc::FailedToMaterialize, llvm::coverage::CoverageMapError, llvm::orc::JITSymbolNotFound, llvm::RuntimeDyldError, llvm::orc::DuplicateDefinition, llvm::orc::rpc::ConnectionClosed, llvm::pdb::RawError, llvm::orc::remote::ResourceNotFound< ResourceIdT >, llvm::codeview::CodeViewError, llvm::msf::MSFError, llvm::pdb::DIAError, llvm::pdb::GenericError, and llvm::BinaryStreamError.
Referenced by llvm::ErrorList::log(), and message().
|
pure virtual |
Implemented in llvm::ErrorInfo< SymbolsNotFound >, llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< SentinelError >, llvm::ErrorInfo< ConnectionClosed >, llvm::ErrorInfo< ParseError >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< RPCFatalError >, llvm::ErrorInfo< DIAError >, llvm::ErrorInfo< DuplicateDefinition >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< CodeViewError >, llvm::ErrorInfo< MSFError >, llvm::ErrorInfo< RawError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< BinaryError, ECError >, 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< GenericError >, and llvm::ErrorInfo< InstrProfError >.
Referenced by classID().
Reimplemented in llvm::ErrorInfo< SymbolsNotFound >, llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< SentinelError >, llvm::ErrorInfo< ConnectionClosed >, llvm::ErrorInfo< ParseError >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< RPCFatalError >, llvm::ErrorInfo< DIAError >, llvm::ErrorInfo< DuplicateDefinition >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< CodeViewError >, llvm::ErrorInfo< MSFError >, llvm::ErrorInfo< RawError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< BinaryError, ECError >, 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< GenericError >, and llvm::ErrorInfo< InstrProfError >.
Definition at line 77 of file Error.h.
References classID().
|
inline |
|
pure virtual |
Print an error message to an output stream.
Implemented in llvm::StringError, llvm::ECError, llvm::json::ParseError, llvm::ErrorList, llvm::DWARFDebugNames::SentinelError, llvm::InstrProfError, llvm::orc::rpc::CouldNotNegotiate, llvm::orc::rpc::ResponseAbandoned, llvm::orc::SymbolsNotFound, llvm::orc::FailedToMaterialize, llvm::coverage::CoverageMapError, llvm::orc::JITSymbolNotFound, llvm::orc::DuplicateDefinition, llvm::orc::rpc::ConnectionClosed, llvm::RuntimeDyldError, llvm::orc::remote::ResourceNotFound< ResourceIdT >, llvm::pdb::RawError, llvm::windows_manifest::WindowsManifestError, llvm::codeview::CodeViewError, llvm::msf::MSFError, llvm::pdb::DIAError, llvm::BinaryStreamError, and llvm::pdb::GenericError.
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 56 of file Error.h.
References convertToErrorCode(), log(), and llvm::raw_string_ostream::str().
Referenced by annotateAllFunctions(), dumpAddrSection(), getMinVisibility(), and llvm::toString().
1.8.13