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

com.untzuntz.ustackserverapi.params.exceptions.ParamValueException Maven / Gradle / Ivy

There is a newer version: 2.1.115
Show newest version
package com.untzuntz.ustackserverapi.params.exceptions;

import com.untzuntz.ustackserverapi.APIException;
import com.untzuntz.ustackserverapi.APIExceptionDocumentation;
import com.untzuntz.ustackserverapi.params.types.ParameterDefinitionInt;

public class ParamValueException extends APIException implements APIExceptionDocumentation {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private String paramTypeName;
	private String message;

	public ParamValueException(ParameterDefinitionInt pti, String message) {
		super();
		this.paramTypeName = pti.getName();
		this.message = pti.getName() + " - " + message;
	}

	public String getParamTypeName() {
		return paramTypeName;
	}
	
	public String getMessage() {
		return message;
	}

	@Override
	public String getReason() {
		return "The request parameter is not valid";
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy