IRecoverable
- Namespace
- ZCore
Implementing this interface gives the user an option to recover from errors by implementing an error handling mechanismn.
INTERFACE IRecoverable
Methods
Recover
Set the internal error state to false. This is useful after the Abort method was called and error handling can recover from this error. It is mainly used to recover Tokens as seen in the following example.
(...)
VAR_INST
startToken : ZCore.StartToken;
END_VAR
(...)
startToken.Recover();
RunActionAsync(startToken);
IF NOT startToken.Error
THEN
(...)
END_IF
METHOD Recover ()