Top Description Fields Constructors Methods
com.rometools.rome.io

public Class ParsingFeedException

extends FeedException
Class Inheritance
Imports
org.jdom2.input.JDOMParseException

Exception thrown by WireFeedInput instance if it can not parse a feed.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
ParsingFeedException(final String
exception message.
msg
)

Creates a FeedException with a message.

public
ParsingFeedException(final String
exception message.
msg
,
final Throwable
root cause exception.
rootCause
)

Creates a FeedException with a message and a root cause exception.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

an integer representing the column number, or -1 if the information is not available.
getColumnNumber
()

Returns the column number of the end of the text where the parse error occurred.

public int

Returns:

an integer representing the line number, or -1 if the information is not available.
getLineNumber
()

Returns the line number of the end of the text where the parse error occurred.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.rometools.rome.io.FeedException.serialVersionUID.

Constructor Detail

ParsingFeedExceptionback to summary
public ParsingFeedException(final String msg)

Creates a FeedException with a message.

Parameters
msg:String

exception message.

ParsingFeedExceptionback to summary
public ParsingFeedException(final String msg, final Throwable rootCause)

Creates a FeedException with a message and a root cause exception.

Parameters
msg:String

exception message.

rootCause:Throwable

root cause exception.

Method Detail

getColumnNumberback to summary
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:int

an integer representing the column number, or -1 if the information is not available.

getLineNumberback to summary
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:int

an integer representing the line number, or -1 if the information is not available.