LLVM  9.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

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

Member Function Documentation

◆ classID()

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

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

◆ isA() [1/2]

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

◆ isA() [2/2]

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

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

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