반응형
개요
예외 클래스들의 용도와 주로 어떤 클래스에서 사용되는지 파악하기 위함
1. 구조
2.예외 클래스
1. 구조(그림대체 예정)
RuntimeException --- IllegalArgumentException
FileNotFountException
if the file does not exist, is a directory rarher than a regular file, or for some other reason cannot be opened for reading.
1. 파일 존재여부
2. 파일이 아니고 디렉터리인 경우
3. 어떤 이유로 파일을 읽을 수 없을 경우
SecurityException
if a security manager exists and its checkRead method denied read access to the file.
1. 보안 매니저 여부
2. 리소스 액세스하는데 필요한 권한이 없는 경우
IllegalArgumentExeption (RuntimeExeption)
Thrown to indicate that a method has been passed an illegal or inappropriate argument
1. 부적절한 인수가 들어왔을 경우
반응형
'Java' 카테고리의 다른 글
this vs getClass() (0) | 2023.07.31 |
---|---|
[스프링부트] This application has no explicit mapping for /error, so you are seeing this as a fallback. (0) | 2022.07.11 |
[자바] log4j 자바소스로 구현 (0) | 2021.09.15 |
[자바] 배포 설명자 web.xml 및 태그 (0) | 2021.07.24 |
[자바] 로그(log)란? (2) | 2021.06.09 |