public class JPhyloIOReaderException extends java.io.IOException implements StreamLocationProvider
JPhyloIOEventReader
, if an error during reading occurs. The exception
can be used directly to indicate an error or to wrap another exception (e.g. an XMLStreamException
.Constructor and Description |
---|
JPhyloIOReaderException(java.lang.String message,
javax.xml.stream.Location location) |
JPhyloIOReaderException(java.lang.String message,
javax.xml.stream.Location location,
java.lang.Throwable cause) |
JPhyloIOReaderException(java.lang.String message,
long characterOffset,
long lineNumber,
long columnNumber) |
JPhyloIOReaderException(java.lang.String message,
long characterOffset,
long lineNumber,
long columnNumber,
java.lang.Throwable cause) |
JPhyloIOReaderException(java.lang.String message,
StreamLocationProvider location) |
JPhyloIOReaderException(java.lang.String message,
StreamLocationProvider location,
java.lang.Throwable cause) |
JPhyloIOReaderException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
long |
getCharacterOffset()
Returns the index of the character in the underlying data source, where the error occurred.
|
long |
getColumnNumber()
Returns the index of the column in the underlying data source, where the error occurred.
|
long |
getLineNumber()
Returns the index of the line in the underlying data source, where the error occurred.
|
public JPhyloIOReaderException(java.lang.String message, long characterOffset, long lineNumber, long columnNumber, java.lang.Throwable cause)
public JPhyloIOReaderException(java.lang.String message, java.lang.Throwable cause)
public JPhyloIOReaderException(java.lang.String message, long characterOffset, long lineNumber, long columnNumber)
public JPhyloIOReaderException(java.lang.String message, javax.xml.stream.Location location, java.lang.Throwable cause)
public JPhyloIOReaderException(java.lang.String message, javax.xml.stream.Location location)
public JPhyloIOReaderException(java.lang.String message, StreamLocationProvider location, java.lang.Throwable cause)
public JPhyloIOReaderException(java.lang.String message, StreamLocationProvider location)
public long getCharacterOffset()
getCharacterOffset
in interface StreamLocationProvider
public long getLineNumber()
getLineNumber
in interface StreamLocationProvider
public long getColumnNumber()
getColumnNumber
in interface StreamLocationProvider