public class AccountException extends Exception
{ public AccountException()
{
super("catch AccountException");
}
public AccountException(String msg)
{
super(msg);
}
public AccountException(Exception e)
{
super(e.getMessage());
} public AccountException(Throwable cause)
{
super(cause.getMessage());
}
}
{ public AccountException()
{
super("catch AccountException");
}
public AccountException(String msg)
{
super(msg);
}
public AccountException(Exception e)
{
super(e.getMessage());
} public AccountException(Throwable cause)
{
super(cause.getMessage());
}
}
{
AccountException ex1 = new AccountException ("错误名称");
throw ex;
}