tuwien.auto.calimero.serial
Class KNXPortClosedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by tuwien.auto.calimero.exception.KNXException
              extended by tuwien.auto.calimero.serial.KNXPortClosedException
All Implemented Interfaces:
java.io.Serializable

public class KNXPortClosedException
extends KNXException

Thrown to indicate illegal access to a closed serial port.

See Also:
Serialized Form

Constructor Summary
KNXPortClosedException()
          Constructs a new KNXPortClosedException without a detail message.
KNXPortClosedException(java.lang.String s)
          Constructs a new KNXPortClosedException with the specified detail message.
KNXPortClosedException(java.lang.String s, java.lang.String portID)
          Constructs a new KNXPortClosedException with the specified detail message and the serial port identifier.
 
Method Summary
 java.lang.String getPortID()
          Returns the serial port identifier supplied with this exception.
 
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
 

Constructor Detail

KNXPortClosedException

public KNXPortClosedException()
Constructs a new KNXPortClosedException without a detail message.


KNXPortClosedException

public KNXPortClosedException(java.lang.String s)
Constructs a new KNXPortClosedException with the specified detail message.

Parameters:
s - the detail message

KNXPortClosedException

public KNXPortClosedException(java.lang.String s,
                              java.lang.String portID)
Constructs a new KNXPortClosedException with the specified detail message and the serial port identifier.

Parameters:
s - the detail message
portID - serial port identifier of the closed port
Method Detail

getPortID

public final java.lang.String getPortID()
Returns the serial port identifier supplied with this exception.

Returns:
port ID as string, or null if no port ID specified