assertionWasWrong
Short summary
This method is called if an assertion was FALSE
Parameters
| Name | Type | Comment | Kind |
|---|---|---|---|
| caller | CNM_AbstractObject.IObject | caller object of the method | input |
| message | CNM_AssertionInterfaces.AssertMessage | alarm message | input |
| additionalText | Tc2_System.T_MaxString | debugging information | input |
Code
Declaration
METHOD assertionWasWrong
VAR_INPUT
(* caller object of the method *)
caller : CNM_AbstractObject.IObject;
(* alarm message *)
message : CNM_AssertionInterfaces.AssertMessage;
(* debugging information *)
additionalText : Tc2_System.T_MaxString;
END_VAR
Implementation
THIS^.wasError := TRUE;
THIS^.wasSuccess := FALSE;
THIS^.wasNotSuccess := TRUE;