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

Base class for error info classes. More...

#include <Error.h>

Inheritance diagram for llvm::ErrorInfoBase:
[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 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 46 of file Support/Error.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Definition at line 79 of file Support/Error.h.

Referenced by isA().

virtual std::error_code llvm::ErrorInfoBase::convertToErrorCode ( ) const
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().

virtual bool llvm::ErrorInfoBase::isA ( const void *const  ClassID) const
inlinevirtual
template<typename ErrorInfoT >
bool llvm::ErrorInfoBase::isA ( ) const
inline

Definition at line 74 of file Support/Error.h.

virtual void llvm::ErrorInfoBase::log ( raw_ostream OS) const
pure virtual
virtual std::string llvm::ErrorInfoBase::message ( ) const
inlinevirtual

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