class CoverageMapError

Declaration

class CoverageMapError : public ErrorInfo { /* full declaration omitted */ };

Description

Base class for user error types. Users should declare their error types like: class MyError : public ErrorInfo <MyError > { .... }; This class provides an implementation of the ErrorInfoBase::kind method, which is used by the Error RTTI system.

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:66

Inherits from: ErrorInfo

Member Variables

public static char ID

Method Overview

  • public CoverageMapError(llvm::coverage::coveragemap_error Err)
  • public std::error_code convertToErrorCode() const
  • public llvm::coverage::coveragemap_error get() const
  • public void log(llvm::raw_ostream & OS) const
  • public std::string message() const

Methods

CoverageMapError(
    llvm::coverage::coveragemap_error Err)

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:68

Parameters

llvm::coverage::coveragemap_error Err

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/ProfileData/Coverage/CoverageMapping.h:76

llvm::coverage::coveragemap_error get() const

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:80

void log(llvm::raw_ostream& OS) const

Description

Print an error message to an output stream.

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:74

Parameters

llvm::raw_ostream& OS

std::string message() const

Description

Return the error message as a string.

Declared at: llvm/include/llvm/ProfileData/Coverage/CoverageMapping.h:72