|
LLVM
5.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 |
|
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::ErrorList, llvm::InstrProfError, llvm::orc::rpc::CouldNotNegotiate, llvm::orc::rpc::ResponseAbandoned, llvm::coverage::CoverageMapError, llvm::RuntimeDyldError, llvm::orc::rpc::ConnectionClosed, llvm::orc::JITSymbolNotFound, llvm::pdb::RawError, llvm::codeview::CodeViewError, llvm::msf::MSFError, llvm::pdb::DIAError, llvm::pdb::GenericError, and llvm::BinaryStreamError.
Referenced by llvm::errorToErrorCodeAndEmitErrors().
|
pure virtual |
Implemented in llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< ConnectionClosed >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< RPCFatalError >, llvm::ErrorInfo< DIAError >, 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< JITSymbolNotFound >, llvm::ErrorInfo< ResponseAbandoned >, llvm::ErrorInfo< GenericError >, and llvm::ErrorInfo< InstrProfError >.
Referenced by llvm::orc::rpc::SerializationTraits< ChannelT, Error >::serialize().
Reimplemented in llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< ConnectionClosed >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< RPCFatalError >, llvm::ErrorInfo< DIAError >, 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< JITSymbolNotFound >, llvm::ErrorInfo< ResponseAbandoned >, llvm::ErrorInfo< GenericError >, and llvm::ErrorInfo< InstrProfError >.
Definition at line 76 of file Error.h.
References classID().
|
inline |
|
pure virtual |
Print an error message to an output stream.
Implemented in llvm::StringError, llvm::ECError, llvm::ErrorList, llvm::InstrProfError, llvm::orc::rpc::CouldNotNegotiate, llvm::orc::rpc::ResponseAbandoned, llvm::coverage::CoverageMapError, llvm::orc::rpc::ConnectionClosed, llvm::RuntimeDyldError, llvm::orc::JITSymbolNotFound, llvm::pdb::RawError, llvm::codeview::CodeViewError, llvm::msf::MSFError, llvm::pdb::DIAError, llvm::BinaryStreamError, and llvm::pdb::GenericError.
Referenced by llvm::orc::remote::OrcRemoteTargetClient< ChannelT >::RCMemoryManager::finalizeMemory(), and message().
|
inlinevirtual |
Return the error message as a string.
Reimplemented in llvm::InstrProfError, and llvm::coverage::CoverageMapError.
Definition at line 55 of file Error.h.
References log(), and llvm::raw_string_ostream::str().
Referenced by annotateAllFunctions(), llvm::Interpreter::create(), llvm::errorToErrorCodeAndEmitErrors(), getLazyIRModule(), LLVMGetBitcodeModuleInContext(), LLVMParseBitcodeInContext(), llvm::parseIR(), and llvm::toString().
1.8.6