Code example for InputMismatchException

0
	 */ 
	public String getHeaderText() throws InputMismatchException {
		if (headerType == getViewType()) {
			return headers.get(position);
		} else { 
			throw new InputMismatchException("This item is not a header...");
		} 
	} 
}