
com.moodysalem.jaxrs.lib.exceptionmappers.ErrorResponse Maven / Gradle / Ivy
package com.moodysalem.jaxrs.lib.exceptionmappers;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.List;
/**
* This represents the structure of an error response from this server
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class ErrorResponse {
private int statusCode;
private List errors;
public Integer getNumErrors() {
return (errors == null) ? 0 : errors.size();
}
public List getErrors() {
return errors;
}
public void setErrors(List errors) {
this.errors = errors;
}
public int getStatusCode() {
return statusCode;
}
public void setStatusCode(int statusCode) {
this.statusCode = statusCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy