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

Error

Lightweight error class with error context and mandatory checking.

Member Functions

Name

Description

operator=

Assignment operators

dynamicClassID

Returns the dynamic class id of this error, or null if this is a success value.

isA

Check whether one error is a subclass of another.

operator bool

Return true if this Error holds a failure value.

Static Member Functions

Name

Description

success

Create a success value.

Non-Member Functions

Name

Description

fmt_consume

Wrap an Error so formatv takes ownership and consumes it.

operator<<

Write a textual representation of error E to stream OS.

toStringWithoutConsuming

Like toString(), but does not consume the error. This can be used to print a warning while retaining the original error object.

visitErrors

Visit all the ErrorInfo(s) contained in E by passing them to the respective handler, without consuming the error.

Created with MrDocs