进阶day05-自定义异常-银行案例

This commit is contained in:
2026-02-04 15:27:23 +08:00
parent 8d3c857be3
commit 6dbbd684f9
7 changed files with 209 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package com.inmind.custom_exception06;
// 自定义异常2无效金额异常
public class InvalidAmountException extends Exception{
public InvalidAmountException(String message) {
super(message);
}
}