LLVM  8.0.1
List of all members
llvm::ErrorSuccess Class Referencefinal

Subclass of Error for the sole purpose of identifying the success path in the type system. More...

#include "llvm/Support/Error.h"

Inheritance diagram for llvm::ErrorSuccess:
Inheritance graph
[legend]
Collaboration diagram for llvm::ErrorSuccess:
Collaboration graph
[legend]

Additional Inherited Members

- Public Member Functions inherited from llvm::Error
 Error (const Error &Other)=delete
 
 Error (Error &&Other)
 Move-construct an error value. More...
 
 Error (std::unique_ptr< ErrorInfoBase > Payload)
 Create an error value. More...
 
Erroroperator= (const Error &Other)=delete
 
Erroroperator= (Error &&Other)
 Move-assign an error value. More...
 
 ~Error ()
 Destroy a Error. More...
 
 operator bool ()
 Bool conversion. More...
 
template<typename ErrT >
bool isA () const
 Check whether one error is a subclass of another. More...
 
const void * dynamicClassID () const
 Returns the dynamic class id of this error, or null if this is a success value. More...
 
- Static Public Member Functions inherited from llvm::Error
static ErrorSuccess success ()
 Create a success value. More...
 
- Protected Member Functions inherited from llvm::Error
 Error ()
 Create a success value. Prefer using 'Error::success()' for readability. More...
 

Detailed Description

Subclass of Error for the sole purpose of identifying the success path in the type system.

This allows to catch invalid conversion to Expected<T> at compile time.

Definition at line 325 of file Error.h.


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