Function lsst::afw::image::assertNonNegative¶
Function Documentation¶
- 
void 
lsst::afw::image::assertNonNegative(double value, std::string const &name)¶ Raise lsst::pex::exceptions::InvalidParameterError if value is not >=0.
Used for checking the calibration mean/error in the constructor.
- Parameters
 value: Value that should be positive.name: Text to prepend to error message.
- Exceptions
 lsst::pex::exceptions::InvalidParameterError: if value < 0