/** * Checks the specified lexical id, and throws an * {@link IllegalArgumentException} if it is not legal. * * @param id * the id 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 checkLexicalID(int id) { if(isIllegalLexicalID(id)) throw new IllegalArgumentException("'" + id + " is an illegal lexical id: lexical ids are in the closed range [0,15]"); }