utils/asserts library

Functions

assertFactor(int factor) → void
Assert that the factor value is somewhere from 0 - 100. Will throw InvalidValueRangeException if not in range.
assertValue(int value) → void
Assert that the color value is somewhere from 0 - 255. Will throw InvalidValueRangeException if not in range.

Exceptions / Errors

InvalidValueRangeException
Exception for invalid integer ranges.