소스 검색

Improve EmptyFileException when the file actually does not exist at all

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1885227 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_0_0
Dominik Stadler 3 년 전
부모
커밋
ce701485d8
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3
    1
      src/java/org/apache/poi/EmptyFileException.java

+ 3
- 1
src/java/org/apache/poi/EmptyFileException.java 파일 보기

@@ -29,6 +29,8 @@ public class EmptyFileException extends IllegalArgumentException {
}

public EmptyFileException(File file) {
super("The supplied file '" + file.getAbsolutePath() + "' was empty (zero bytes long)");
super(file.exists() ?
"The supplied file '" + file.getAbsolutePath() + "' was empty (zero bytes long)" :
"The file '" + file.getAbsolutePath() + "' does not exist");
}
}

Loading…
취소
저장