/*******************************************************************************
 * Copyright (c) 2014 Codenvy, S.A.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Codenvy, S.A. - initial API and implementation
 *******************************************************************************/
package com.codenvy.client;

import javax.ws.rs.ProcessingException;

/**
 * The base Codenvy exception.
 * 
 * @author Kevin Pollet
 */
public class CodenvyException extends RuntimeException {
    private static final long serialVersionUID = 197371454259368237L;

    /**
     * Constructs an instance of {@link CodenvyException} from a {@link ProcessingException}.
     * 
     * @param e the {@link ProcessingException} instance.
     * @return the created {@link CodenvyException}.
     */
    public static CodenvyException from(ProcessingException e) {
        return new CodenvyException(e.getMessage(), e.getCause());
    }

    /**
     * Constructs an instance of {@link CodenvyException}.
     * 
     * @param message the exception message.
     * @param cause the {@link Throwable} cause
     */
    public CodenvyException(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Constructs an instance of {@link CodenvyException}.
     * 
     * @param message the exception message.
     */
    public CodenvyException(String message) {
        super(message);
    }
}

@@ -543,48 +543,8 @@
 t;%0A%0A
-import javax.ws.rs.ProcessingException;%0A
 %0A/**
@@ -807,24 +807,25 @@
 %7D from a
+n
  %7B@link 
 Processi
@@ -812,34 +812,24 @@
 m an %7B@link 
-Processing
 Exception%7D.%0A
@@ -863,26 +863,16 @@
  %7B@link 
-Processing
 Exceptio
@@ -989,18 +989,8 @@
 rom(
-Processing
 Exce

Remove ProcessingException link from CodenvyException