You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
389 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package com.yanzhen.framework.exception;
public class MyException extends RuntimeException { // 定义一个名为MyException的类继承自RuntimeException
public MyException() { // 无参构造函数
}
public MyException(String message) { // 带一个字符串参数的构造函数
super(message); // 调用父类的构造函数,并传递消息参数
}
}