📄 isdirectoryexception.java
字号:
/**
* IsDirectoryException extends Exception throws when to copy file
* or to stastic file but the file is a directory
* and show a message dialog
*/
package file;
import javax.swing.*;
import java.io.*;
public class IsDirectoryException extends Exception {
public IsDirectoryException(String fileName) {
super(fileName);
JOptionPane.showMessageDialog(null,
"File " + fileName + " is a foder not a file !");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -