|
LLVM
4.0.0
|
Base class for error info classes. More...
#include <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 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.
Definition at line 46 of file Support/Error.h.
|
virtualdefault |
|
inlinestatic |
Definition at line 79 of file Support/Error.h.
Referenced by 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::ErrorList, llvm::InstrProfError, llvm::coverage::CoverageMapError, llvm::RuntimeDyldError, llvm::pdb::RawError, llvm::msf::MSFError, llvm::codeview::CodeViewError, llvm::pdb::DIAError, and llvm::pdb::GenericError.
Referenced by llvm::errorToErrorCode(), and llvm::errorToErrorCodeAndEmitErrors().
Reimplemented in llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< DIAError >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< CodeViewError >, llvm::ErrorInfo< MSFError >, llvm::ErrorInfo< RawError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< GenericBinaryError, BinaryError >, llvm::ErrorInfo< ECError >, llvm::ErrorInfo< CoverageMapError >, llvm::ErrorInfo< GenericError >, and llvm::ErrorInfo< InstrProfError >.
Definition at line 69 of file Support/Error.h.
References classID().
|
inline |
Definition at line 74 of file Support/Error.h.
|
pure virtual |
Print an error message to an output stream.
Implemented in llvm::StringError, llvm::ECError, llvm::ErrorList, llvm::InstrProfError, llvm::object::GenericBinaryError, llvm::coverage::CoverageMapError, llvm::RuntimeDyldError, llvm::pdb::RawError, llvm::msf::MSFError, llvm::codeview::CodeViewError, llvm::pdb::DIAError, and llvm::pdb::GenericError.
Referenced by llvm::orc::remote::OrcRemoteTargetClient< ChannelT >::RCMemoryManager::finalizeMemory(), llvm::logAllUnhandledErrors(), and message().
|
inlinevirtual |
Return the error message as a string.
Reimplemented in llvm::InstrProfError, and llvm::coverage::CoverageMapError.
Definition at line 54 of file Support/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