studentexception.java

来自「学生成绩管理系统JPA做的」· Java 代码 · 共 28 行

JAVA
28
字号
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 + =
减小字号Ctrl + -
显示快捷键?