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

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

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

import java.util.ArrayList;
import java.util.List;

import com.untzuntz.ustackserverapi.APIException;
import com.untzuntz.ustackserverapi.APIExceptionDocumentation;

public class ParamGroupException extends APIException implements APIExceptionDocumentation {

	private static final long serialVersionUID = 1L;

	private String groupName;
	private List childExceptions;
	
	public ParamGroupException(String groupName) {
		this.groupName = groupName;
		this.childExceptions = new ArrayList();
	}
	
	public void addException(APIException grp) {
		childExceptions.add(grp);
	}
	
	public String getGroupName() {
		return groupName;
	}
	
	public List getChildExceptions() {
		return childExceptions;
	}

	@Override
	public String getReason() {
		return "One or more request parameters are invalid";
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy