org.jnetstream.capture.file
Class RecordError
java.lang.Object
org.jnetstream.capture.file.RecordError
public class RecordError
- extends java.lang.Object
Holds any errors that have been encountered with any of the records within a
capture file. When an error is encountered, an error is generated that is
returned by some methods within the API. You can query the errors to see what
happened. For example the RawIterator.skipOverErrors() method returns an
array of errors that may have happened and no exceptions are thrown.
- Author:
- Mark Bednarczyk, Sly Technologies, Inc.
|
Constructor Summary |
RecordError(long position,
java.lang.String message)
|
RecordError(long position,
java.lang.String message,
java.lang.Exception exception)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordError
public RecordError(long position,
java.lang.String message,
java.lang.Exception exception)
- Parameters:
position - message - exception -
RecordError
public RecordError(long position,
java.lang.String message)
- Parameters:
position - message -
getException
public final java.lang.Exception getException()
- Returns:
- the exception
setException
public final void setException(java.lang.Exception exception)
- Parameters:
exception - the exception to set
getMessage
public final java.lang.String getMessage()
- Returns:
- the message
getPosition
public final long getPosition()
- Returns:
- the position