tuwien.auto.calimero.exception
Class KNXFormatException

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.exception.KNXFormatException
All Implemented Interfaces:
java.io.Serializable

public class KNXFormatException
extends KNXException

Thrown when some value or content is not in accordance with the expected or requested format or result.

See Also:
Serialized Form

Constructor Summary
KNXFormatException()
          Constructs a new KNXFormatException without a detail message.
KNXFormatException(java.lang.String s)
          Constructs a new KNXFormatException with the specified detail message.
KNXFormatException(java.lang.String s, int item)
          Constructs a new KNXFormatException with the specified detail message and the invalid item value of type int.
KNXFormatException(java.lang.String s, java.lang.String item)
          Constructs a new KNXFormatException with the specified detail message and the invalid item.
 
Method Summary
 java.lang.String getItem()
          Returns the value, content or piece of information which caused the 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

KNXFormatException

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


KNXFormatException

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

Parameters:
s - the detail message

KNXFormatException

public KNXFormatException(java.lang.String s,
                          int item)
Constructs a new KNXFormatException with the specified detail message and the invalid item value of type int.

The item value is formatted into a hexadecimal string representation using the format "0x" prefix + value (e.g. "0x23" for an item value of 23).

Parameters:
s - the detail message
item - the value causing this exception

KNXFormatException

public KNXFormatException(java.lang.String s,
                          java.lang.String item)
Constructs a new KNXFormatException with the specified detail message and the invalid item.

Parameters:
s - the detail message
item - value, content or piece of information causing this exception (allowed to be null)
Method Detail

getItem

public final java.lang.String getItem()
Returns the value, content or piece of information which caused the exception.

Returns:
item representation as string, or null if no item was set