public static class FileBatchJob.ExceptionOccurrence extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static long |
UNKNOWN_OFFSET
Marker for the case when we couldn't find an offset for the outputstream.
|
Constructor and Description |
---|
ExceptionOccurrence(boolean inInitialize,
long outputOffset,
Exception exception)
Constructor for ExceptionOccurrence when an exception happened during initialize() or finish().
|
ExceptionOccurrence(File file,
long fileOffset,
long outputOffset,
Exception exception)
Standard Constructor for ExceptionOccurrence.
|
Modifier and Type | Method and Description |
---|---|
Exception |
getException()
The exception that was thrown.
|
String |
getFileName()
Get the name of the file that this exception occurred in.
|
long |
getFileOffset()
Get the offset into the file that this exception occurred at.
|
long |
getOutputOffset()
Offset of the output stream when this exception occurred.
|
boolean |
isFinishException()
Returns true if the exception was thrown during finish().
|
boolean |
isInitializeException()
Returns true if the exception was thrown during initialize().
|
String |
toString() |
public static final long UNKNOWN_OFFSET
public ExceptionOccurrence(File file, long fileOffset, long outputOffset, Exception exception)
file
- The file that caused the exception.fileOffset
- The relevant offset into the file when the exception happened (e.g. the start of an ARC
record).outputOffset
- The offset we were at in the outputstream when the exception happened.exception
- The exception thrown. This exception must be serializable.for details on the parameters.
public ExceptionOccurrence(boolean inInitialize, long outputOffset, Exception exception)
inInitialize
- True if the exception happened in initialize()outputOffset
- Current offset in the output stream, or UNKNOWN_OFFSET if the offset cannot be found.exception
- The exception that was thrown.public String getFileName()
public long getFileOffset()
public long getOutputOffset()
public Exception getException()
public boolean isInitializeException()
public boolean isFinishException()
Copyright © 2005–2015 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.