cashierbusyexception.java

来自「国外的数据结构与算法分析用书」· Java 代码 · 共 19 行

JAVA
19
字号
/**	This exception is used whenever the cashier should be idle,
	but is busy, for example when starting a service. */
public class CashierBusyException extends Exception
{
	/**	Create an exception with the specified message. 
		Analysis: Time = O(1) */
	public CashierBusyException(String message)
	{
		super(message);
	}

	/**	Create an exception with the default message. 
		Analysis: Time = O(1) */
	public CashierBusyException()
	{
		super("Cashier busy when she/he should not be!");
	}
}

⌨️ 快捷键说明

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