package org.wso2.carbon.device.mgt.ios.exception;

import org.wso2.carbon.device.mgt.ios.api.utils.util.Message;

import javax.ws.rs.WebApplicationException;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;

public class ServiceImplementationException extends WebApplicationException {

    public ServiceImplementationException(Message message, MediaType mediaType) {
        super(Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(message).type(mediaType).build());
    }
}
