class ApplicationException extends Exception {

    public Response buildErrorResponse() {
        return Response.status(errorCode).entity(errorMsg).build();
    }

    public  ApplicationException(int errorCode, String errorMsg);

}