// Path: graphql-rest/src/main/java/org/objectstyle/graphql/rest/GraphQLRestException.java
// public class GraphQLRestException extends RuntimeException {
// 
//     private static final long serialVersionUID = -1228276457093874409L;
// 
//     private Status status;
// 
//     public GraphQLRestException() {
//         this(Status.INTERNAL_SERVER_ERROR);
//     }
// 
//     public GraphQLRestException(Status status) {
//         this(status, null, null);
//     }
// 
//     public GraphQLRestException(Status status, String message) {
//         this(status, message, null);
//     }
// 
//     public GraphQLRestException(Status status, String message, Throwable cause) {
//         super(message, cause);
//         this.status = status;
//     }
// 
//     public Status getStatus() {
//         return status;
//     }
// }
// 
// Path: graphql-rest/src/main/java/org/objectstyle/graphql/rest/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.graphql.rest.GraphQLRestException;
import org.objectstyle.graphql.rest.MessageResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package org.objectstyle.graphql.rest.provider;



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


// Path: graphql-rest/src/main/java/org/objectstyle/graphql/rest/provider/GraphQLRestExceptionMapper.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.graphql.rest.GraphQLRestException;
import org.objectstyle.graphql.rest.MessageResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

package org.objectstyle.graphql.rest.provider;



@Provider
@Singleton
public class GraphQLRestExceptionMapper implements ExceptionMapper<GraphQLRestException> {