|
| template<typename ErrT , typename... ArgTs> |
| Error | llvm::make_error (ArgTs &&... Args) |
| | Make a Error instance representing failure using the given error info type. More...
|
| |
| Error | llvm::joinErrors (Error E1, Error E2) |
| | Concatenate errors. More...
|
| |
| LLVM_ATTRIBUTE_NORETURN void | llvm::report_fatal_error (Error Err, bool gen_crash_diag=true) |
| | Report a serious error, calling any installed error handler. More...
|
| |
| void | llvm::cantFail (Error Err, const char *Msg=nullptr) |
| | Report a fatal error if Err is a failure value. More...
|
| |
| template<typename T > |
| T | llvm::cantFail (Expected< T > ValOrErr, const char *Msg=nullptr) |
| | Report a fatal error if ValOrErr is a failure value, otherwise unwraps and returns the contained value. More...
|
| |
| template<typename T > |
| T & | llvm::cantFail (Expected< T &> ValOrErr, const char *Msg=nullptr) |
| | Report a fatal error if ValOrErr is a failure value, otherwise unwraps and returns the contained reference. More...
|
| |
| Error | llvm::handleErrorImpl (std::unique_ptr< ErrorInfoBase > Payload) |
| |
| template<typename HandlerT , typename... HandlerTs> |
| Error | llvm::handleErrorImpl (std::unique_ptr< ErrorInfoBase > Payload, HandlerT &&Handler, HandlerTs &&... Handlers) |
| |
| template<typename... HandlerTs> |
| Error | llvm::handleErrors (Error E, HandlerTs &&... Hs) |
| | Pass the ErrorInfo(s) contained in E to their respective handlers. More...
|
| |
| template<typename... HandlerTs> |
| void | llvm::handleAllErrors (Error E, HandlerTs &&... Handlers) |
| | Behaves the same as handleErrors, except that by contract all errors must be handled by the given handlers (i.e. More...
|
| |
| void | llvm::handleAllErrors (Error E) |
| | Check that E is a non-error, then drop it. More...
|
| |
| template<typename T , typename RecoveryFtor , typename... HandlerTs> |
| Expected< T > | llvm::handleExpected (Expected< T > ValOrErr, RecoveryFtor &&RecoveryPath, HandlerTs &&... Handlers) |
| | Handle any errors (if present) in an Expected<T>, then try a recovery path. More...
|
| |
| void | llvm::logAllUnhandledErrors (Error E, raw_ostream &OS, Twine ErrorBanner={}) |
| | Log all errors (if any) in E to OS. More...
|
| |
| std::string | llvm::toString (Error E) |
| | Write all error messages (if any) in E to a string. More...
|
| |
| void | llvm::consumeError (Error Err) |
| | Consume a Error without doing anything. More...
|
| |
| bool | llvm::errorToBool (Error Err) |
| | Helper for converting an Error to a bool. More...
|
| |
| std::error_code | llvm::inconvertibleErrorCode () |
| | The value returned by this function can be returned from convertToErrorCode for Error values where no sensible translation to std::error_code exists. More...
|
| |
| Error | llvm::errorCodeToError (std::error_code EC) |
| | Helper for converting an std::error_code to a Error. More...
|
| |
| std::error_code | llvm::errorToErrorCode (Error Err) |
| | Helper for converting an ECError to a std::error_code. More...
|
| |
| template<typename T > |
| Expected< T > | llvm::errorOrToExpected (ErrorOr< T > &&EO) |
| | Convert an ErrorOr<T> to an Expected<T>. More...
|
| |
| template<typename T > |
| ErrorOr< T > | llvm::expectedToErrorOr (Expected< T > &&E) |
| | Convert an Expected<T> to an ErrorOr<T>. More...
|
| |
| template<typename... Ts> |
| Error | llvm::createStringError (std::error_code EC, char const *Fmt, const Ts &... Vals) |
| | Create formatted StringError object. More...
|
| |
| Error | llvm::createStringError (std::error_code EC, char const *Msg) |
| |
| Error | llvm::createFileError (std::string F, Error E) |
| | Concatenate a source file path and/or name with an Error. More...
|
| |
| Error | llvm::createFileError (std::string F, ErrorSuccess)=delete |
| |
| LLVMErrorRef | llvm::wrap (Error Err) |
| | Conversion from Error to LLVMErrorRef for C error bindings. More...
|
| |
| Error | llvm::unwrap (LLVMErrorRef ErrRef) |
| | Conversion from LLVMErrorRef to Error for C error bindings. More...
|
| |