Subclass of Error that represents success in the type system.
Synopsis
Declared in <llvm/Support/Error.h>
class ErrorSuccess final
: public Error
Description
Identifies the success path so invalid conversions to Expected<T> can be caught at compile time.
Base Classes
Name |
Description |
Lightweight error class with error context and mandatory checking. |
Member Functions
Name |
Description |
Assignment operators |
|
Returns the dynamic class id of this error, or null if this is a success value. |
|
Check whether one error is a subclass of another. |
|
Return true if this Error holds a failure value. |
Static Member Functions
Name |
Description |
Create a success value. |
Non-Member Functions
Name |
Description |
Wrap an Error so formatv takes ownership and consumes it. |
|
Write a textual representation of error |
|
Like toString(), but does not consume the error. This can be used to print a warning while retaining the original error object. |
|
Visit all the ErrorInfo(s) contained in E by passing them to the respective handler, without consuming the error. |
Created with MrDocs