在我的Web应用程序中创建了一个用户定义的异常,它扩展了Exception.Is it Checked或unchecked exception
public class InvalidDataException extends Exception{
public InvalidDataException() {
super();
// TODO Auto-generated constructor stub
}
/**
* @param arg0
*/
public InvalidDataException(String message) {
super(message);
// TODO Auto-generated constructor stub
}
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10924 次 |
| 最近记录: |