Consume a Error without doing anything. This method should be used only where an error can be considered a reasonable and expected return value.
Synopsis
Declared in <llvm/Support/Error.h>
void
consumeError(Error Err);
Description
Uses of this method are potentially indicative of design problems: If it's legitimate to do nothing while processing an "error", the error‐producer might be more clearly refactored to return an std::optional<T>.
Parameters
Name |
Description |
Err |
Lightweight error class with error context and mandatory checking. |
Created with MrDocs