package org.cg.services.core.exception;

import javax.ws.rs.BadRequestException;

/**
 * A BadRequestException indicates duplicate resource
 * @author WZ
 *
 */
public class DuplicateResourceException extends BadRequestException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2023321811788010561L;

	/**
	 * Constructor
	 */
    public DuplicateResourceException() {
        super(new Throwable("Duplicate resource."));
    }
    
    /**
     * Constructor
     * @param msg The error message
     */
    public DuplicateResourceException( String msg) {
        super(new Throwable(msg));
    }
}
@@ -53,26 +53,30 @@
 x.ws.rs.
-BadRequest
+WebApplication
 Exceptio
@@ -206,26 +206,30 @@
 extends 
-BadRequest
+WebApplication
 Exceptio

fix duplicate exception not returning 409 issue