Subclass of Error that represents success in the type system.
Identifies the success path so invalid conversions to Expected<T> can be caught at compile time.
| Name | Description |
|---|---|
Error | Lightweight error class with error context and mandatory checking. |
| 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. |
| Name | Description |
|---|---|
success | Create a success value. |
| 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. |