📄 illegalrectangleexception.java
字号:
/**
*Title:IllegalRectangleException.java
*Description: This class defines an IllegalRectangleException
*when width and height are the same, it throws IllegalRectangleException
*@author: Peng yu
*version:1.0
*/
public class IllegalRectangleException extends Exception
{
public IllegalRectangleException()
{
super("Error: You have creared an invalid rectangle. The width and height can't be the same.");
//invoke and override the Exception's constructor
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -