We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
public void example() throws Exception { // todo }
public void example() throws ClassNotFoundException{ // todo }
public void example() throws SQLException,ClassNotFoundException,NullPointerException{ Class.forName("example"); }
public void example() throws SQLException,ClassNotFoundException{ Class.forName("example"); }
The text was updated successfully, but these errors were encountered:
qkrqudcks7
No branches or pull requests
메서드가 던지는 모든 예외를 문서화하라
검사 예외는 항상 따로따로 선언하고, 각 예외가 발생하는 상황을 자바독의 @throws 태그를 사용하여 정확히 문서화하자
잘못된 예시
올바른 예시
메서드가 던질수 있는 예외를 각각 @throws 태그로 문서화하되 , 비검사 예외는 메서드 선언의 thorws 목록에 넣지말자.
잘못된 예시
올바른 예시
결론
The text was updated successfully, but these errors were encountered: