com.untzuntz.ustackserverapi.params.exceptions.ParamGroupException Maven / Gradle / Ivy
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