public class Defind {
public static void main(String[] args) {
try
{
throw new DefindException("异常");
}
catch(DefindException e)
{
System.out.println(e);
}
}
class DefindException extends Exception
{
public DefindException(String msg)
{
super(msg);
}
}
}
相关分类