m_exception.java
来自「简易模拟电梯系统」· Java 代码 · 共 30 行
JAVA
30 行
package myException;
import java.lang.Throwable;
//File name:m_Exception.java
//author jiaben
//auther jiaben02@software.nju.edu.cn
//Copyright jiaben
//Only this class will be used
public class m_Exception extends Throwable
{
//An empty constructor
public m_Exception()
{
super();
}
//Construtor use a string value as its parameter
public m_Exception(String message)
{
super(message);
}
//@see m_Exception(String)
public m_Exception(String message, Throwable cause)
{
super(message,cause);
}
//@see m_Exception(String,Throwable)
public m_Exception(Throwable cause)
{
super(cause);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?