|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
tuwien.auto.calimero.exception.KNXException
tuwien.auto.calimero.exception.KNXFormatException
public class KNXFormatException
Thrown when some value or content is not in accordance with the expected or requested format or result.
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 |
---|
public KNXFormatException()
KNXFormatException
without a detail message.
public KNXFormatException(java.lang.String s)
KNXFormatException
with the specified detail
message.
s
- the detail messagepublic KNXFormatException(java.lang.String s, int item)
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).
s
- the detail messageitem
- the value causing this exceptionpublic KNXFormatException(java.lang.String s, java.lang.String item)
KNXFormatException
with the specified detail
message and the invalid item.
s
- the detail messageitem
- value, content or piece of information causing this exception (allowed
to be null
)Method Detail |
---|
public final java.lang.String getItem()
null
if no item was set
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |