class BinaryStreamError

Declaration

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

Description

Base class for errors originating when parsing raw PDB files

Declared at: llvm/include/llvm/Support/BinaryStreamError.h:27

Inherits from: ErrorInfo

Member Variables

public static char ID

Method Overview

Methods

BinaryStreamError(llvm::stream_error_code C)

Declared at: llvm/include/llvm/Support/BinaryStreamError.h:30

Parameters

llvm::stream_error_code C

BinaryStreamError(llvm::StringRef Context)

Declared at: llvm/include/llvm/Support/BinaryStreamError.h:31

Parameters

llvm::StringRef Context

BinaryStreamError(llvm::stream_error_code C,
                  llvm::StringRef Context)

Declared at: llvm/include/llvm/Support/BinaryStreamError.h:32

Parameters

llvm::stream_error_code C
llvm::StringRef Context

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/BinaryStreamError.h:35

llvm::stream_error_code getErrorCode() const

Declared at: llvm/include/llvm/Support/BinaryStreamError.h:39

llvm::StringRef getErrorMessage() const

Declared at: llvm/include/llvm/Support/BinaryStreamError.h:37

void log(llvm::raw_ostream& OS) const

Description

Print an error message to an output stream.

Declared at: llvm/include/llvm/Support/BinaryStreamError.h:34

Parameters

llvm::raw_ostream& OS