llvm::ErrorSuccess

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

NameDescription
ErrorLightweight error class with error context and mandatory checking.

Member Functions

NameDescription
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

NameDescription
success Create a success value.

Non-Member Functions

NameDescription
fmt_consumeWrap an Error so formatv takes ownership and consumes it.
operator<<Write a textual representation of error E to stream OS.
toStringWithoutConsumingLike toString(), but does not consume the error. This can be used to print a warning while retaining the original error object.
visitErrorsVisit all the ErrorInfo(s) contained in E by passing them to the respective handler, without consuming the error.