LLVM  10.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
llvm::ErrorInfoBase Class Referenceabstract

Base class for error info classes. More...

#include "llvm/Support/Error.h"

Inheritance diagram for llvm::ErrorInfoBase:
Inheritance graph
[legend]

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 ()
 

Detailed Description

Base class for error info classes.

Do not extend this directly: Extend the ErrorInfo template subclass instead.

Definition at line 48 of file Error.h.

Constructor & Destructor Documentation

◆ ~ErrorInfoBase()

virtual llvm::ErrorInfoBase::~ErrorInfoBase ( )
virtualdefault

Member Function Documentation

◆ classID()

static const void* llvm::ErrorInfoBase::classID ( )
inlinestatic

Definition at line 70 of file Error.h.

References dynamicClassID().

Referenced by isA(), and llvm::ErrorInfo< MSFError, StringError >::isA().

◆ convertToErrorCode()

virtual std::error_code llvm::ErrorInfoBase::convertToErrorCode ( ) const
pure virtual

◆ dynamicClassID()

virtual const void* llvm::ErrorInfoBase::dynamicClassID ( ) const
pure virtual

Implemented in llvm::ErrorInfo< SymbolsNotFound >, llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< FileError >, llvm::ErrorInfo< SymbolRemappingParseError >, llvm::ErrorInfo< YAMLParseError >, llvm::ErrorInfo< SentinelError >, llvm::ErrorInfo< RawError, StringError >, llvm::ErrorInfo< InstructionError< T > >, llvm::ErrorInfo< ConnectionClosed >, llvm::ErrorInfo< ParseError >, llvm::ErrorInfo< FileCheckNotFoundError >, llvm::ErrorInfo< DIAError, StringError >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< CodeViewError, StringError >, llvm::ErrorInfo< RPCFatalError >, llvm::ErrorInfo< JITLinkError >, llvm::ErrorInfo< DuplicateDefinition >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< EndOfFileError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< RemarkSetupPatternError >, llvm::ErrorInfo< SymbolsCouldNotBeRemoved >, llvm::ErrorInfo< FileCheckErrorDiagnostic >, llvm::ErrorInfo< CouldNotNegotiate >, llvm::ErrorInfo< ThisError >, llvm::ErrorInfo< RemarkSetupFileError >, llvm::ErrorInfo< ECError >, llvm::ErrorInfo< CoverageMapError >, llvm::ErrorInfo< FailedToMaterialize >, llvm::ErrorInfo< ResourceNotFound< ResourceIdT > >, llvm::ErrorInfo< AtomicFileWriteError >, llvm::ErrorInfo< WindowsManifestError, ECError >, llvm::ErrorInfo< JITSymbolNotFound >, llvm::ErrorInfo< ResponseAbandoned >, llvm::ErrorInfo< FileCheckUndefVarError >, llvm::ErrorInfo< InstrProfError >, llvm::ErrorInfo< RemarkSetupFormatError >, and llvm::ErrorInfo< MSFError, StringError >.

Referenced by classID().

◆ isA() [1/2]

virtual bool llvm::ErrorInfoBase::isA ( const void *const  ClassID) const
inlinevirtual

Reimplemented in llvm::ErrorInfo< SymbolsNotFound >, llvm::ErrorInfo< ErrorList >, llvm::ErrorInfo< FileError >, llvm::ErrorInfo< SymbolRemappingParseError >, llvm::ErrorInfo< YAMLParseError >, llvm::ErrorInfo< SentinelError >, llvm::ErrorInfo< RawError, StringError >, llvm::ErrorInfo< InstructionError< T > >, llvm::ErrorInfo< ConnectionClosed >, llvm::ErrorInfo< ParseError >, llvm::ErrorInfo< FileCheckNotFoundError >, llvm::ErrorInfo< DIAError, StringError >, llvm::ErrorInfo< BinaryStreamError >, llvm::ErrorInfo< CodeViewError, StringError >, llvm::ErrorInfo< RPCFatalError >, llvm::ErrorInfo< JITLinkError >, llvm::ErrorInfo< DuplicateDefinition >, llvm::ErrorInfo< RuntimeDyldError >, llvm::ErrorInfo< StringError >, llvm::ErrorInfo< EndOfFileError >, llvm::ErrorInfo< BinaryError, ECError >, llvm::ErrorInfo< PDBError, StringError >, llvm::ErrorInfo< RemarkSetupPatternError >, llvm::ErrorInfo< SymbolsCouldNotBeRemoved >, llvm::ErrorInfo< FileCheckErrorDiagnostic >, llvm::ErrorInfo< CouldNotNegotiate >, llvm::ErrorInfo< ThisError >, llvm::ErrorInfo< RemarkSetupFileError >, llvm::ErrorInfo< ECError >, llvm::ErrorInfo< CoverageMapError >, llvm::ErrorInfo< FailedToMaterialize >, llvm::ErrorInfo< ResourceNotFound< ResourceIdT > >, llvm::ErrorInfo< AtomicFileWriteError >, llvm::ErrorInfo< WindowsManifestError, ECError >, llvm::ErrorInfo< JITSymbolNotFound >, llvm::ErrorInfo< ResponseAbandoned >, llvm::ErrorInfo< FileCheckUndefVarError >, llvm::ErrorInfo< InstrProfError >, llvm::ErrorInfo< RemarkSetupFormatError >, and llvm::ErrorInfo< MSFError, StringError >.

Definition at line 77 of file Error.h.

References classID().

◆ isA() [2/2]

template<typename ErrorInfoT >
bool llvm::ErrorInfoBase::isA ( ) const
inline

Definition at line 82 of file Error.h.

◆ log()

virtual void llvm::ErrorInfoBase::log ( raw_ostream OS) const
pure virtual

◆ message()

virtual std::string llvm::ErrorInfoBase::message ( ) const
inlinevirtual

The documentation for this class was generated from the following files: