/** * Checks the specified word number, and throws an * {@link IllegalArgumentException} if it is not legal. * * @param num * the number to check * @throws IllegalArgumentException * if the specified lexical id is not in the closed range [0,15] * @since JWI 2.1.0 */ public static void checkWordNumber(int num) { if(isIllegalWordNumber(num)) throw new IllegalArgumentException("'" + num + " is an illegal word number: word numbers are in the closed range [1,255]"); }