📄 parameterexception.java
字号:
/* * ** Network and Service Differentiation Extensions to GridSim 3.0 ** * * Gokul Poduval & Chen-Khong Tham * Computer Communication Networks (CCN) Lab * Dept of Electrical & Computer Engineering * National University of Singapore * October 2004 * * Licence: GPL - http://www.gnu.org/copyleft/gpl.html * * ParameterException.java - Thrown for illegal parameters * */package gridsim;/** * This exception is to report bad or invalid parameters given during * constructor. * * @invariant $none * @since GridSim Toolkit 3.1 * @author Gokul Poduval & Chen-Khong Tham, National University of Singapore */public class ParameterException extends Exception{ private String message_; /** * Constructs a new exception with <tt>null</tt> as its detail message. * @pre $none * @post $none */ public ParameterException() { message_ = null; } /** * Creates a new ParameterException object. * @param message an error message * @pre $none * @post $none */ public ParameterException(String message) { this.message_ = message; } /** * Returns an error message of this object * @return an error message * @pre $none * @post $none */ public String toString() { return message_; }} // end class
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -