tidy of old error handling classes and read and write monolithic platform services.

This commit is contained in:
Keith Woodlock
2012-05-17 02:45:26 +01:00
parent 7bb8b9359e
commit 6693b45003
25 changed files with 420 additions and 849 deletions
@@ -1,64 +0,0 @@
package org.mifosng.data;
import javax.xml.bind.annotation.XmlRootElement;
/**
* Being removed in favour of {@link ApiGlobalErrorResponse} and {@link ApiParameterError}
*/
@Deprecated
@XmlRootElement(name="errorResponse")
public class ErrorResponse {
private String code;
private String field;
private String value;
private Object[] args;
public ErrorResponse() {
//
}
public ErrorResponse(final String code, final String field, final String value) {
this.code = code;
this.field = field;
this.value = value;
}
public ErrorResponse(final String code, final String field, final Object... args) {
this.code = code;
this.field = field;
this.args = args;
}
public String getCode() {
return this.code;
}
public void setCode(final String code) {
this.code = code;
}
public String getField() {
return this.field;
}
public void setField(final String field) {
this.field = field;
}
public String getValue() {
return this.value;
}
public void setValue(final String value) {
this.value = value;
}
public Object[] getArgs() {
return args;
}
public void setArgs(Object[] args) {
this.args = args;
}
}
@@ -1,32 +0,0 @@
package org.mifosng.data;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class ErrorResponseList {
private List<ErrorResponse> errors = new ArrayList<ErrorResponse>();
public ErrorResponseList() {
//
}
public ErrorResponseList(final List<ErrorResponse> errors) {
this.errors = errors;
}
@XmlElementWrapper(name="errors")
@XmlElement(name="errorResponse")
public List<ErrorResponse> getErrors() {
return errors;
}
public void setErrors(List<ErrorResponse> errors) {
this.errors = errors;
}
}