llvm::MSVCPError

A default-constructible Error suitable for use with MSVC's std::future.

Synopsis

Declared in <llvm/Support/MSVCErrorWorkarounds.h>

class MSVCPError
    : public Error

Base Classes

NameDescription
ErrorLightweight error class with error context and mandatory checking.

Member Functions

NameDescription
MSVCPError [constructor]Constructors
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.