org.fosstrak.hal
Class HardwareAbstractionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.fosstrak.hal.HardwareAbstractionException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
HardwareException

public class HardwareAbstractionException
extends java.lang.Exception

This exception is the root exception for all exeption that are thrown in the hardware abstraction layer. This exception is thrown by HAL controller methods of a objects within the hardware abstraction layer if the attempt to execute a command failed. The idea is to propagate just a single kind of error to the layers above. This simplifies the error handling for other layers. The error itself can be specified in more detail by using the following codes: serviceCode: Indicates the kind of service, which caused the exception readerProtocolErrorCode The RP conform error code..

Author:
Matthias Lampe, lampe@acm.org
See Also:
Serialized Form

Field Summary
protected static org.apache.commons.logging.Log log
          The logger.
 
Constructor Summary
HardwareAbstractionException()
          Constructor.
HardwareAbstractionException(java.lang.String message)
          Constructor specifying a message.
HardwareAbstractionException(java.lang.String message, java.lang.Throwable cause)
          Constructor specifying a message and a cause.
HardwareAbstractionException(java.lang.Throwable cause)
          Constructor using a cause.
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
The logger.

Constructor Detail

HardwareAbstractionException

public HardwareAbstractionException()
Constructor.


HardwareAbstractionException

public HardwareAbstractionException(java.lang.String message)
Constructor specifying a message.

Parameters:
message - The message

HardwareAbstractionException

public HardwareAbstractionException(java.lang.Throwable cause)
Constructor using a cause.

Parameters:
cause - The cause

HardwareAbstractionException

public HardwareAbstractionException(java.lang.String message,
                                    java.lang.Throwable cause)
Constructor specifying a message and a cause.

Parameters:
message - The message
cause - The cause


Copyright © 2008. All Rights Reserved.