Skip to main content

assertionWasWrong

Short summary

This method is called if an assertion was FALSE

Parameters

NameTypeCommentKind
callerCNM_AbstractObject.IObjectcaller object of the methodinput
messageCNM_AssertionInterfaces.AssertMessagealarm messageinput
additionalTextTc2_System.T_MaxStringdebugging informationinput

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;