Code example for InvalidParameterException

0
	/** 
	 * Get the Id of the section 
	 */ 
	public Long getSectionId(String section) {
		if (headers == null) {
			throw new InvalidParameterException(ERRORMSG);
		} 
		return sectionIds.get(section);
	} 
	 
	/** 
	 * Get the Id of the section a position is contained in 
	 */ 
	public Long getSectionIdOfPos(final int position) {
		return getSectionId(getSection(position));
	} 
 
	/** 
	 * Get the section a position is contained in. 
	 */ 
	public String getSection(int position) {