public class ParserException extends Exception
Locator (file name, URL, etc.) Line number (negative for unknown) The text of the actual offending line (Null if unknown) Character offset (negative for unknown)
Constructor and Description |
---|
ParserException(String detail) |
ParserException(String detail,
String locator) |
ParserException(String detail,
String locator,
int line) |
ParserException(String detail,
String locator,
int lineNumber,
String line) |
ParserException(String detail,
String locator,
int lineNumber,
String line,
int character) |
ParserException(String message,
Throwable cause) |
ParserException(Throwable t) |
ParserException(Throwable t,
String detail)
Deprecated.
use new ParserException(detail, t)
|
ParserException(Throwable t,
String detail,
String locator) |
ParserException(Throwable t,
String detail,
String locator,
int line) |
ParserException(Throwable t,
String detail,
String locator,
int lineNumber,
String line) |
ParserException(Throwable t,
String detail,
String locator,
int lineNumber,
String line,
int character) |
Modifier and Type | Method and Description |
---|---|
int |
getCharacterOffset()
Get the character offset in the line where an error was detected.
|
String |
getLine()
Get the text of the line where the exception occured.
|
int |
getLineNumber()
Get the line number in the stream where this exception occured.
|
String |
getLocator()
Get a locator for the stream which caused this exception.
|
String |
toString()
Represent this exception as a string.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public ParserException(String detail)
public ParserException(String detail, String locator)
public ParserException(String detail, String locator, int line)
public ParserException(String detail, String locator, int lineNumber, String line)
public ParserException(String detail, String locator, int lineNumber, String line, int character)
public ParserException(Throwable t)
public ParserException(Throwable t, String detail)
public ParserException(String message, Throwable cause)
public ParserException(Throwable t, String detail, String locator)
public ParserException(Throwable t, String detail, String locator, int line)
public ParserException(Throwable t, String detail, String locator, int lineNumber, String line)
public ParserException(Throwable t, String detail, String locator, int lineNumber, String line, int character)
public String getLocator()
null
if none is
known.public int getLineNumber()
public int getCharacterOffset()
public String getLine()
null
if not known.Copyright © 2014 BioJava. All rights reserved.