class YAMLParseError

Declaration

class YAMLParseError : 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/lib/Remarks/YAMLRemarkParser.h:31

Inherits from: ErrorInfo

Member Variables

public static char ID

Method Overview

  • public YAMLParseError(llvm::StringRef Message, llvm::SourceMgr & SM, yaml::Stream & Stream, yaml::Node & Node)
  • public YAMLParseError(llvm::StringRef Message)
  • public std::error_code convertToErrorCode() const
  • public void log(llvm::raw_ostream & OS) const

Methods

YAMLParseError(llvm::StringRef Message,
               llvm::SourceMgr& SM,
               yaml::Stream& Stream,
               yaml::Node& Node)

Declared at: llvm/lib/Remarks/YAMLRemarkParser.h:35

Parameters

llvm::StringRef Message
llvm::SourceMgr& SM
yaml::Stream& Stream
yaml::Node& Node

YAMLParseError(llvm::StringRef Message)

Declared at: llvm/lib/Remarks/YAMLRemarkParser.h:38

Parameters

llvm::StringRef Message

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/lib/Remarks/YAMLRemarkParser.h:41

void log(llvm::raw_ostream& OS) const

Description

Print an error message to an output stream.

Declared at: llvm/lib/Remarks/YAMLRemarkParser.h:40

Parameters

llvm::raw_ostream& OS