1. 표준 예외와 코드의 재사용

표준 예외를 재사용할 시 얻는 이점

2. 자주 재사용하는 예외들

1. IllegalArgumentException

public class Test {

	public static void main(String[] args) {
			doSomething(-1);
	}

	 public void doSomething(int loopCount) {
	     if(loopCount < 0) {
		      throw new IllegalArgumentException();
	     }
	     
	     ...
	 }
}

2. IllegalStateException

3. ConcurrentModificationException