Package com.rometools.rome.io
Class ParsingFeedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.rometools.rome.io.FeedException
-
- com.rometools.rome.io.ParsingFeedException
-
- All Implemented Interfaces:
Serializable
public class ParsingFeedException extends FeedException
Exception thrown by WireFeedInput instance if it can not parse a feed.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ParsingFeedException(String msg)Creates a FeedException with a message.ParsingFeedException(String msg, Throwable rootCause)Creates a FeedException with a message and a root cause exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColumnNumber()Returns the column number of the end of the text where the parse error occurred.intgetLineNumber()Returns the line number of the end of the text where the parse error occurred.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
ParsingFeedException
public ParsingFeedException(String msg)
Creates a FeedException with a message.- Parameters:
msg- exception message.
-
-
Method Detail
-
getLineNumber
public int getLineNumber()
Returns the line number of the end of the text where the parse error occurred.The first line in the document is line 1.
- Returns:
- an integer representing the line number, or -1 if the information is not available.
-
getColumnNumber
public int getColumnNumber()
Returns the column number of the end of the text where the parse error occurred.The first column in a line is position 1.
- Returns:
- an integer representing the column number, or -1 if the information is not available.
-
-