class FileError
Declaration
class FileError : public ErrorInfo { /* full declaration omitted */ };
Description
This class wraps a filename and another Error. In some cases, an error needs to live along a 'source' name, in order to show more detailed information to the user.
Declared at: llvm/include/llvm/Support/Error.h:1221
Inherits from: ErrorInfo
Member Variables
- public static char ID
Method Overview
- public std::error_code convertToErrorCode() const
- public llvm::StringRef getFileName()
- public void log(llvm::raw_ostream & OS) const
- public llvm::Error takeError()
Methods
¶std::error_code convertToErrorCode() const
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/Error.h:1239
¶llvm::StringRef getFileName()
llvm::StringRef getFileName()
Declared at: llvm/include/llvm/Support/Error.h:1235
¶void log(llvm::raw_ostream& OS) const
void log(llvm::raw_ostream& OS) const
Description
Print an error message to an output stream.
Declared at: llvm/include/llvm/Support/Error.h:1227
Parameters
¶llvm::Error takeError()
llvm::Error takeError()
Declared at: llvm/include/llvm/Support/Error.h:1237