Very Simple Cross-Platform Library
|
#include <Failable.h>
Public Member Functions | |
bool | failed () const |
errorCode_t | getErrorCode () const |
void | repair () |
An object that references another failable object and fails together with that object.
The Child class should contain a function named getFailable() which returns the failable object.
Definition at line 92 of file Failable.h.
|
inline |
Indicate if the referenced object has failed.
Definition at line 152 of file Failable.h.
|
inline |
Get the error code from the referenced object.
Definition at line 160 of file Failable.h.
|
inline |
Discard the error code of the referenced object.
Definition at line 168 of file Failable.h.