Error Messages/40236
< Error Messages
Revision as of 17:32, 1 February 2010 by AManandhar (talk | contribs) (Created page with '= Error Message Examples = In call to function Calculate_BMI, the first parameter, weight, should be positive. = Cause = = Cause = You passed a non positive value to a func…')
Error Message Examples
In call to function Calculate_BMI, the first parameter, weight, should be positive.
Cause
Cause
You passed a non positive value to a functions that expects the parameter to have a positive value. Function parameters that have been qualified by the 'positive' qualifier expects a positive value, and produces this error on passing a non positive value.
The following function expects the first parameter, weight, to be a positive value and throws this error when an array with non positive values is passed to it.
Function Calculate_BMI( weight: positive; height: positive)
To learn more about function parameter qualifier, please click here.
Remedies
Correct the value passed to the function to be positive.
Comments
<comments />
Enable comment auto-refresher