自定義異常類就是給出父類的構造器即可
阿新 • • 發佈:2018-11-25
package cn.my.service;
/**
* 自定義異常類就是給出父類的構造器即可,方便來建立物件!
* @author Administrator
*
*/
public class UserException extends Exception {
public UserException() {
super();
// TODO Auto-generated constructor stub
}
public UserException(String message, Throwable cause) {
super(message, cause);
// TODO Auto-generated constructor stub
}
public UserException(String message) {
super(message);
// TODO Auto-generated constructor stub
}
public UserException(Throwable cause) {
super(cause);
// TODO Auto-generated constructor stub
}
}