@@ -0,0 +1,569 @@
+package de.unibi.cebitec.bibiserv.jobproxy.model.exceptions;%0A%0Aimport javax.ws.rs.WebApplicationException;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0A%0Apublic class BadGatewayException extends WebApplicationException %7B%0A%0A    public BadGatewayException(String message, FrameworkException exception)%7B%0A        this(message + %22  %22 +exception.getMessage());%0A    %7D%0A%0A    public BadGatewayException(String message) %7B%0A        super(Response.status(Response.Status.BAD_GATEWAY)%0A                .entity(message).type(MediaType.TEXT_PLAIN).build());%0A    %7D%0A%7D%0A

fix Exception