|
WPILibC++
2020.3.2
|
Subclass of Error for the sole purpose of identifying the success path in the type system. More...
#include <Error.h>
Additional Inherited Members | |
Public Member Functions inherited from wpi::Error | |
| Error (const Error &Other)=delete | |
| Error (Error &&Other) noexcept | |
| Move-construct an error value. More... | |
| Error (std::unique_ptr< ErrorInfoBase > Payload) | |
| Create an error value. More... | |
| Error & | operator= (const Error &Other)=delete |
| Error & | operator= (Error &&Other) noexcept |
| Move-assign an error value. More... | |
| ~Error () | |
| Destroy a Error. More... | |
| operator bool () | |
| Bool conversion. More... | |
| template<typename ErrT > | |
| bool | isA () const |
| Check whether one error is a subclass of another. | |
| const void * | dynamicClassID () const |
| Returns the dynamic class id of this error, or null if this is a success value. | |
Static Public Member Functions inherited from wpi::Error | |
| static ErrorSuccess | success () |
| Create a success value. | |
Protected Member Functions inherited from wpi::Error | |
| Error () | |
| Create a success value. Prefer using 'Error::success()' for readability. | |
Subclass of Error for the sole purpose of identifying the success path in the type system.
This allows to catch invalid conversion to Expected<T> at compile time.