LLVM: llvm::ErrorSuccess Class Reference (original) (raw)

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

#include "[llvm/Support/Error.h](llvm%5F2Support%5F2Error%5F8h%5Fsource.html)"

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

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

This allows to catch invalid conversion to Expected at compile time.

Definition at line 334 of file Error.h.


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