1
2
3
4
5
6
7
8
9
10
11
12
13 |
/** * 自定义IO异常 * @author Administrator * */ public class FileWriterIoException extends
RuntimeException { private
static final long serialVersionUID = -3105736191743754320L; public
FileWriterIoException(String msg){ super (msg); } } |
调用的时候直接 throw new FileWriterIoException("创建流错误!");
原文:http://www.cnblogs.com/lxricecream/p/3585477.html