Notice
Recent Posts
Recent Comments
목록unchecked (1)
송민준의 개발노트
checked, unchecked exception이란?
어떻게 나누어지는가? Exception은 Checked Exception과 Unchecked Exception으로 구분이 되는데 Unchecked Exception은 runtime Exception을 상속하기 때문에 별다른 처리를 안해줘도 롤백이 되고 Checked Exception은 상속하지 않기 때문에 rollback이 안된다. 예를 들어 SQLException이나 IOException인 경우 Checked Exception에 해당되고 Exception 처리를 안해주면 Rollback이 안된다. 해서 Checked Exception은 명시적으로 처리를 해줘야하기 때문에 throws나 try catch로 처리를 해줘야 하고 반면 Unchecked Exception은 묵시적으로 된다. 왜 Checked ..
웹/Spring Framework
2020. 11. 26. 21:58