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

org.openfact.services.ModelErrorResponseException Maven / Gradle / Ivy

The newest version!
package org.openfact.services;

import javax.ejb.ApplicationException;
import javax.ws.rs.core.Response;

@ApplicationException(rollback = true)
public class ModelErrorResponseException extends Exception {

    private Response.Status status;

    public ModelErrorResponseException(String message) {
        super(message);
        this.status = Response.Status.INTERNAL_SERVER_ERROR;
    }

    public ModelErrorResponseException(String message, Response.Status status) {
        super(message);
        this.status = status;
    }

    public Response.Status getStatus() {
        return status;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy