Package Functions | |
| boolean | doAssert (boolean condition, String message) |
An interface for the Assert mechanism. Needed for different, context-dependent implementations of assertion mechanism
| boolean cern.gp.util.IAssert.doAssert | ( | boolean | condition, | |
| String | message | |||
| ) | [package] |
Assertion. Does nothing if the boolean condition is true; issues an error message (and possibly an error log) if the condition is false.
Method to be implemented by different Assert mechanism. Currently implemented in a Netbeans-specific manner
| condition | the condition to be checked | |
| errMsg | the message to be displayed if the condition is false |
Implemented in cern.gp.util.NbAssert.
Referenced by cern.gp.util.Assertion.assertTrue().
1.7.0