classNotEnoughBalanceExceptionextendsAccountException{Accountaccount;publicNotEnoughBalanceException(Accounta){super("余额不足");account=a;}publicStringtoString(){return"账户["+account.toString()+"]的余额不足!";}}