class ErrorInfoBase

Declaration

class ErrorInfoBase { /* full declaration omitted */ };

Description

Base class for error info classes. Do not extend this directly: Extend the ErrorInfo template subclass instead.

Declared at: llvm/include/llvm/Support/Error.h:48

Method Overview

  • public static const void * classID()
  • public virtual std::error_code convertToErrorCode() const
  • public virtual const void * dynamicClassID() const
  • public virtual bool isA(const void *const ClassID) const
  • public template <typename ErrorInfoT>bool isA() const
  • public virtual void log(llvm::raw_ostream & OS) const
  • public virtual std::string message() const
  • public virtual ~ErrorInfoBase()

Methods

static const void* classID()

Declared at: llvm/include/llvm/Support/Error.h:70

virtual std::error_code convertToErrorCode() const

Description

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.

Declared at: llvm/include/llvm/Support/Error.h:67

virtual const void* dynamicClassID() const

Declared at: llvm/include/llvm/Support/Error.h:73

virtual bool isA(const void* const ClassID) const

Declared at: llvm/include/llvm/Support/Error.h:77

Parameters

const void* const ClassID

template <typename ErrorInfoT>
bool isA() const

Declared at: llvm/include/llvm/Support/Error.h:82

Templates

ErrorInfoT

virtual void log(llvm::raw_ostream& OS) const

Description

Print an error message to an output stream.

Declared at: llvm/include/llvm/Support/Error.h:53

Parameters

llvm::raw_ostream& OS

virtual std::string message() const

Description

Return the error message as a string.

Declared at: llvm/include/llvm/Support/Error.h:56

virtual ~ErrorInfoBase()

Declared at: llvm/include/llvm/Support/Error.h:50