📄 cashierbusyexception.java
字号:
/** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -