进阶day05-自定义异常-银行案例
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.inmind.custom_exception06;
|
||||
// 自定义异常2:无效金额异常
|
||||
public class InvalidAmountException extends Exception{
|
||||
public InvalidAmountException(String message) {
|
||||
super(message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user