📄 negativeamountexception.java
字号:
// NegativeAmountException.java: Negative amount exception
public class NegativeAmountException extends Exception
{
// Information to be passed to the handlers
private Account account;
private double amount;
private String transactionType;
// Construct an negative amount exception
public NegativeAmountException(Account account,
double amount,
String transactionType)
{
super("Negative amount");
this.account = account;
this.amount = amount;
this.transactionType = transactionType;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -