emptycollectionexception.java

来自「一个普通的计算器程序」· Java 代码 · 共 18 行

JAVA
18
字号
//********************************************************************
//  EmptyCollectionException.java     Authors: Lewis/Chase
//
//  Represents the situation in which a collection is empty.
//********************************************************************
package jss2.exceptions;

public class EmptyCollectionException extends RuntimeException
{
   /******************************************************************
     Sets up this exception with an appropriate message.
   ******************************************************************/
   public EmptyCollectionException (String collection)
   {
      super ("The " + collection + " is empty.");
   }
}

⌨️ 快捷键说明

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