emptysetexception.java

来自「一个有用的java应用小程序」· Java 代码 · 共 26 行

JAVA
26
字号
//********************************************************************
//  EmptySetException.java     Authors: Lewis/Chase
//
//  Represents the situation in which a set is empty.
//********************************************************************
package jss2.exceptions;

public class EmptySetException extends RuntimeException
{
  /******************************************************************
    Creates the exception.
  *******************************************************************/
  public EmptySetException()
  {
    super ("The set is empty.");
  }
  
  /******************************************************************
    Creates the exception with the specified message.
  *******************************************************************/
  public EmptySetException (String message)
  {
    super (message);
  }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?