argumentexception.jsc

来自「《JavaScript王者归来》examples.rar」· JSC 代码 · 共 36 行

JSC
36
字号
# language: JSVM2

/**
 * @fileoverview js.lang.ArgumentException class {@link http://jsvm.org/}
 * @file		ArgumentException.jsc
 * @author	Wan Changhua * @version	2.01, 10/23/05 * @since		JSVM1.0
 */

package js.lang;

import js.lang.Exception;

/** * Create a new ArgumentException instance.
 * Inherit from Exception
 * @author	Wan Changhua * @version	2.01, 10/23/05 * @extends Exception * @class this is a ArgumentException class
 * @constructor * @return A new ArgumentException
 * @see Exception js.lang.Exception is the base class for this */

class	ArgumentException extends Exception (msg)
{
	if (msg == null)
	{
		arguments = ["The arguments illegal."];
	}
	super.apply(this, arguments);
}

⌨️ 快捷键说明

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