예외의 추상화

추상화의 예시

public E get(int index) {
		ListIterator<E> iter = listIterator(index);
		
		try {
				return iter.nextr();
		} catch(NoSuchElementException e) {
				throw new IndexOutOfBoundsException("index : " + index);
		}
}
class HigherLevelException extends Exception {
		HigherLevelException(Throwable cause) {
				super(cause)
		}
}

2. 하지만 미리 잘 만들어 놓아야 한다.