illegalrectangleexception.java

来自「一个大学本科java课程的大作业。要求利用GUI以及APPLET分别完成一个任务」· Java 代码 · 共 22 行

JAVA
22
字号

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