<<< exception chaining example | Index | AssertionError exception >>> |
The syntax of the assert statement
assert booleanExpression [: message ];
Code that makes a reasonable assertion about a calculation
assert ( value <= 0 ) : "positive value expected" ;
<<< exception chaining example | Index | AssertionError exception >>> |