/****************************************************************************
 * Copyright (C) 2012 ecsec GmbH.
 * All rights reserved.
 * Contact: ecsec GmbH (info@ecsec.de)
 *
 * This file is part of the Open eCard App.
 *
 * GNU General Public License Usage
 * This file may be used under the terms of the GNU General Public
 * License version 3.0 as published by the Free Software Foundation
 * and appearing in the file LICENSE.GPL included in the packaging of
 * this file. Please review the following information to ensure the
 * GNU General Public License version 3.0 requirements will be met:
 * http://www.gnu.org/copyleft/gpl.html.
 *
 * Other Usage
 * Alternatively, this file may be used in accordance with the terms
 * and conditions contained in a signed written agreement between
 * you and ecsec GmbH.
 *
 ***************************************************************************/

package org.openecard.transport.paos;

import org.openecard.common.I18n;
import static org.openecard.binding.tctoken.ex.ErrorTranslations.*;
import org.openecard.common.I18nException;


/**
 *
 * @author Hans-Martin Haase
 */
public class PAOSConnectionException extends I18nException {

    private static final I18n lang = I18n.getTranslation("tr03112");

    public PAOSConnectionException() {
	super(lang, PAOS_CONNECTION_EXCEPTION);
    }

    public PAOSConnectionException(Throwable cause) {
	super(lang, PAOS_CONNECTION_EXCEPTION, cause);
    }

}

@@ -91,17 +91,22 @@
  (C) 201
-2
+4-2015
  ecsec G
@@ -1087,13 +1087,84 @@
 on;%0A
-%0A%0A/**
+import org.openecard.common.I18nKey;%0A%0A%0A/**%0A * Localized ConnectionException.
 %0A *%0A
@@ -1336,190 +1336,800 @@
     
-public PAOSConnectionException() %7B%0A%09super(lang, PAOS_CONNECTION_EXCEPTION);%0A    %7D%0A%0A    public PAOSConnectionException(Throwable cause) %7B%0A%09super(lang, PAOS_CONNECTION_EXCEPTION, cause
+/**%0A     * Creates an instance and initialize the exception with an static localized message.%0A     */%0A    public PAOSConnectionException() %7B%0A%09super(lang, PAOS_CONNECTION_EXCEPTION);%0A    %7D%0A%0A    /**%0A     * Creates an instance and initialize the exception with an previous exception and a static localized exception.%0A     *%0A     * @param cause The exception causing the error.%0A     */%0A    public PAOSConnectionException(Throwable cause) %7B%0A%09super(lang, PAOS_CONNECTION_EXCEPTION, cause);%0A    %7D%0A%0A    /**%0A     * Creates an instance and initializes the exception with a localized message.%0A     *%0A     * @param key Translation key.%0A     * @param params Parameters adding values into the translation.%0A     */%0A    public PAOSConnectionException(I18nKey key, Object... params) %7B%0A%09super(lang, key, params
 );%0A 

Add constructor which just takes a message.