📄 studentexception.java
字号:
package com.fengmanfei.student.exception;
public class StudentException extends RuntimeException {
private static final long serialVersionUID = 6694335116878989661L;
public StudentException() {
super();
}
public StudentException(String msg) {
super(msg);
}
public StudentException(String msg, Throwable e) {
super(msg, e);
}
@Override
public String toString() {
if (getCause() != null) {
return getCause().getMessage();
}
return getMessage();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -