|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
es.uc3m.it.xbe32.tlv.TLVParseException
Exception class for errors occuring while parsing XBE32 TLVs.
TLVParser.parse()
,
Serialized FormConstructor Summary | |
TLVParseException(Exception ex)
Creates a new TLVParseException with an encapsulated Exception |
|
TLVParseException(String msg,
int type)
Creates a new TLVParseException with the specified message, that occurred while parsing the specified TLV |
|
TLVParseException(String msg,
int type,
int offset)
Creates a new TLVParseException with the specified message, that occurred while parsing the specified TLV at the specified InputStream position |
Method Summary | |
Exception |
getException()
Returns the encapsulated Exception, if any |
String |
getMessage()
Returns the detail message string of this Exception. |
int |
getOffset()
Returns the position at the InputStream where the parsing error occurs |
void |
setOffset(int off)
Sets the position at the InputStream where the parsing error occurs |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, 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 TLVParseException(String msg, int type)
msg
- the error messagetype
- the Type of the invalid TLVpublic TLVParseException(String msg, int type, int offset)
msg
- the error messagetype
- the Type of the invalid TLVoffset
- the position of the invalid TLV in the InputStreampublic TLVParseException(Exception ex)
ex
- the Exception to be encapsulatedMethod Detail |
public Exception getException()
public int getOffset()
public void setOffset(int off)
off
- the error's positionpublic String getMessage()
null
).
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |