@@ -0,0 +1,2812 @@
+/*%0D%0A * Copyright (C) 2007 ETH Zurich%0D%0A *%0D%0A * This file is part of Accada (www.accada.org).%0D%0A *%0D%0A * Accada is free software; you can redistribute it and/or%0D%0A * modify it under the terms of the GNU Lesser General Public%0D%0A * License version 2.1, as published by the Free Software Foundation.%0D%0A *%0D%0A * Accada is distributed in the hope that it will be useful,%0D%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0D%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU%0D%0A * Lesser General Public License for more details.%0D%0A *%0D%0A * You should have received a copy of the GNU Lesser General Public%0D%0A * License along with Accada; if not, write to the Free%0D%0A * Software Foundation, Inc., 51 Franklin Street, Fifth Floor,%0D%0A * Boston, MA  02110-1301  USA%0D%0A */%0D%0A%0D%0Apackage org.accada.reader.hal;%0D%0A%0D%0Aimport org.apache.commons.logging.Log;%0D%0Aimport org.apache.commons.logging.LogFactory;%0D%0A%0D%0A%0D%0A/**%0D%0A * This exception is the root exception for all exeption that%0D%0A * are thrown in the hardware abstraction layer.%0D%0A * %0D%0A * This exception is thrown by HAL controller methods of a objects within the hardware abstraction layer if the%0D%0A * attempt to execute a command failed. The idea is to propagate just a single%0D%0A * kind of error to the layers above. This simplifies the error handling for%0D%0A * other layers.%0D%0A * %0D%0A * The error itself can be specified in more detail by using the following codes:%0D%0A * %0D%0A * %3Ccode%3EserviceCode%3C/code%3E: Indicates the kind of service, which caused the exception%0D%0A%0D%0A * %3Ccode%3EreaderProtocolErrorCode%3C/code%3E The RP conform error code..%0D%0A * %0D%0A * @author Matthias Lampe, lampe@acm.org%0D%0A */%0D%0A%0D%0Apublic class HardwareAbstractionException extends Exception %7B%0D%0A%09%0D%0A%09//----------------------constants--------------------------------%0D%0A%09%0D%0A%09private static final long serialVersionUID = 1L;%0D%0A%09%0D%0A%09//----------------------fields-----------------------------------%0D%0A%09%0D%0A%09/**%0D%0A%09 * The logger.%0D%0A%09 */%0D%0A%09protected static Log log = LogFactory.getLog(HardwareAbstractionException.class); %09%0D%0A%09%0D%0A%09//----------------------constructors----------------------------%0D%0A%09%0D%0A%09/**%0D%0A%09 * Constructor.%0D%0A%09 */%0D%0A%09public HardwareAbstractionException() %7B%0D%0A%09%09super();%0D%0A%09%7D%0D%0A%0D%0A%09/**%0D%0A%09 * Constructor specifying a message.%0D%0A%09 * %0D%0A%09 * @param message%0D%0A%09 *            The message%0D%0A%09 */%0D%0A%09public HardwareAbstractionException(String message) %7B%0D%0A%09%09super(message);%0D%0A%09%7D%0D%0A%0D%0A   /**%0D%0A    * Constructor using a cause.%0D%0A    * %0D%0A    * @param cause%0D%0A    *            The cause%0D%0A    */%0D%0A   public HardwareAbstractionException(Throwable cause) %7B%0D%0A      super(cause);%0D%0A   %7D%0D%0A   %0D%0A%09/**%0D%0A%09 * Constructor specifying a message and a cause.%0D%0A%09 * %0D%0A%09 * @param message%0D%0A%09 *            The message%0D%0A%09 * @param cause%0D%0A%09 *            The cause%0D%0A%09 */%0D%0A%09public HardwareAbstractionException(String message, Throwable cause) %7B%0D%0A%09%09super(message, cause);%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

move part of reader-hal to hal-commons