class GenericBinaryError

Declaration

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

Description

Generic binary error. For errors that don't require their own specific sub-error (most errors) this class can be used to describe the error via a string message.

Declared at: llvm/include/llvm/Object/Error.h:66

Inherits from: ErrorInfo

Member Variables

private std::string Msg
public static char ID

Method Overview

Methods

GenericBinaryError(const llvm::Twine& Msg)

Declared at: llvm/include/llvm/Object/Error.h:69

Parameters

const llvm::Twine& Msg

GenericBinaryError(
    const llvm::Twine& Msg,
    llvm::object::object_error ECOverride)

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

Parameters

const llvm::Twine& Msg
llvm::object::object_error ECOverride

const std::string& getMessage() const

Declared at: llvm/include/llvm/Object/Error.h:71

void log(llvm::raw_ostream& OS) const

Description

Print an error message to an output stream.

Declared at: llvm/include/llvm/Object/Error.h:72

Parameters

llvm::raw_ostream& OS