paramnotpresentexception.java

来自「Vodafone betavine java api source code, 」· Java 代码 · 共 41 行

JAVA
41
字号
package com.bv.api;import java.util.Vector;/** * Thrown when a required parameter is not present * @author C. Oattes */public class ParamNotPresentException extends Exception {	private Vector<String> params = null;	private String error = "The following required parameters were not set: ";		/**	 * Create a ParamNotPresentException with the parameters stored in params	 * @param params A list of the parameters that have not been specified.	 */	public ParamNotPresentException(Vector<String> params) {		super();		this.params = params;		for (String param : params) {			error += param + " ";		}		error = error.trim();	}		/**	 * Get the error message	 * @return A space separated list of parameters that have not been specified.	 */	public String getError() {		return error;	}	/**	 * Get the list of parameters not set	 * @return A Vector which contains a list of String parameters that have not been set.	 */	public Vector<String> getParams() {		return params;	}}

⌨️ 快捷键说明

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