LLVM  8.0.1
Public Member Functions | Static Public Attributes | List of all members
llvm::object::GenericBinaryError Class Reference

Generic binary error. More...

#include "llvm/Object/Error.h"

Inheritance diagram for llvm::object::GenericBinaryError:
Inheritance graph
[legend]
Collaboration diagram for llvm::object::GenericBinaryError:
Collaboration graph
[legend]

Public Member Functions

 GenericBinaryError (Twine Msg)
 
 GenericBinaryError (Twine Msg, object_error ECOverride)
 
const std::string & getMessage () const
 
void log (raw_ostream &OS) const override
 
- Public Member Functions inherited from llvm::ErrorInfo< GenericBinaryError, BinaryError >
const void * dynamicClassID () const override
 
bool isA (const void *const ClassID) const override
 

Static Public Attributes

static char ID = 0
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::ErrorInfo< GenericBinaryError, BinaryError >
static const void * classID ()
 

Detailed 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.

Definition at line 66 of file Error.h.

Constructor & Destructor Documentation

◆ GenericBinaryError() [1/2]

GenericBinaryError::GenericBinaryError ( Twine  Msg)

Definition at line 64 of file Error.cpp.

◆ GenericBinaryError() [2/2]

GenericBinaryError::GenericBinaryError ( Twine  Msg,
object_error  ECOverride 
)

Definition at line 66 of file Error.cpp.

References llvm::object::make_error_code().

Member Function Documentation

◆ getMessage()

const std::string& llvm::object::GenericBinaryError::getMessage ( ) const
inline

◆ log()

void GenericBinaryError::log ( raw_ostream OS) const
override

Definition at line 71 of file Error.cpp.

Member Data Documentation

◆ ID

char GenericBinaryError::ID = 0
static

Definition at line 68 of file Error.h.


The documentation for this class was generated from the following files: