본문 바로가기

JAVA/Error

[Error] java - Unreachable catch block for SQLException. This exception is never thrown from the try statement body

 

 

Unreachable catch block for SQLException. This exception is never thrown from the try statement body

 

try 안에서 exception이 발생하지 않으니 필요없다는 뜻.

해당 Exception 필요한 경우 구문을 try-catch 안에 넣으면 됨.