// Path: bootique-graphql/src/main/java/org/objectstyle/bootique/graphql/jaxrs/BQGraphQLRestException.java
// public class BQGraphQLRestException extends RuntimeException {
// 
// 	private static final long serialVersionUID = -1228276457093874409L;
// 	
// 	private Status status;
// 
// 	public BQGraphQLRestException() {
// 		this(Status.INTERNAL_SERVER_ERROR);
// 	}
// 
// 	public BQGraphQLRestException(Status status) {
// 		this(status, null, null);
// 	}
// 
// 	public BQGraphQLRestException(Status status, String message) {
// 		this(status, message, null);
// 	}
// 
// 	public BQGraphQLRestException(Status status, String message, Throwable cause) {
// 		super(message, cause);
// 		this.status = status;
// 	}
// 
// 	public Status getStatus() {
// 		return status;
// 	}
// }
// 
// Path: bootique-graphql/src/main/java/org/objectstyle/bootique/graphql/jaxrs/MessageResponse.java
// public class MessageResponse {
// 
// 	private String message;
// 
// 	public MessageResponse(String message) {
// 		this.message = message;
// 	}
// 
// 	public String getMessage() {
// 		return message;
// 	}
// }


import javax.inject.Singleton;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import org.objectstyle.bootique.graphql.jaxrs.BQGraphQLRestException;
import org.objectstyle.bootique.graphql.jaxrs.MessageResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package org.objectstyle.bootique.graphql.jaxrs.provider;



@Provider
@Singleton
// Path: bootique-graphql/src/main/java/org/objectstyle/bootique/graphql/jaxrs/BQGraphQLRestException.java
// public class BQGraphQLRestException extends RuntimeException {
// 
// 	private static final long serialVersionUID = -1228276457093874409L;
// 	
// 	private Status status;
// 
// 	public BQGraphQLRestException() {
// 		this(Status.INTERNAL_SERVER_ERROR);
// 	}
// 
// 	public BQGraphQLRestException(Status status) {
// 		this(status, null, null);
// 	}
// 
// 	public BQGraphQLRestException(Status status, String message) {
// 		this(status, message, null);
// 	}
// 
// 	public BQGraphQLRestException(Status status, String message, Throwable cause) {
// 		super(message, cause);
// 		this.status = status;
// 	}
// 
// 	public Status getStatus() {
// 		return status;
// 	}
// }
// 
// Path: bootique-graphql/src/main/java/org/objectstyle/bootique/graphql/jaxrs/MessageResponse.java
// public class MessageResponse {
// 
// 	private String message;
// 
// 	public MessageResponse(String message) {
// 		this.message = message;
// 	}
// 
// 	public String getMessage() {
// 		return message;
// 	}
// }


// Path: bootique-graphql/src/main/java/org/objectstyle/bootique/graphql/jaxrs/provider/BQGraphQLRestExceptionMapper.java
import javax.inject.Singleton;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import org.objectstyle.bootique.graphql.jaxrs.BQGraphQLRestException;
import org.objectstyle.bootique.graphql.jaxrs.MessageResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

package org.objectstyle.bootique.graphql.jaxrs.provider;



@Provider
@Singleton
public class BQGraphQLRestExceptionMapper implements ExceptionMapper<BQGraphQLRestException> {