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

com.moodysalem.jaxrs.lib.exceptionmappers.ErrorResponse Maven / Gradle / Ivy

There is a newer version: 3.0.7
Show newest version
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