All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ksyun.ks3.exception.client.ClientIllegalArgumentException Maven / Gradle / Ivy

package com.ksyun.ks3.exception.client;

import com.ksyun.ks3.exception.Ks3ClientException;

/**
 * @author lijunwei[[email protected]]  
 * 
 * @date 2014年12月2日 下午2:09:01
 * 
 * @description 
 **/
public class ClientIllegalArgumentException extends Ks3ClientException{
	static enum Reason{
		notNull,//参数不能为空
		notCorrect,//参数格式错误
		notBetween,//参数不在正确取值范围内
		others;
	}
	private Reason reason = Reason.others;
	private String paramName;//出错的参数名
	public ClientIllegalArgumentException(String message) {
		super(message);
		// TODO Auto-generated constructor stub
	}
	public Reason getReason() {
		return reason;
	}
	public void setReason(Reason reason) {
		this.reason = reason;
	}
	public String getParamName() {
		return paramName;
	}
	public void setParamName(String paramName) {
		this.paramName = paramName;
	}
	public String toString(){
		return "ClientIllegalArgumentException:"+super.getMessage()+";reason:"+this.reason+";paramName:"+this.paramName;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy