Copyright (c) 2000-2002 ChurchillObjects.com

churchillobjects.rss4j.parser
Class RssParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--churchillobjects.rss4j.parser.RssParseException
All Implemented Interfaces:
java.io.Serializable

public class RssParseException
extends java.lang.Exception

Indicates an exception occurred during parsing of the RSS document. Most problems will have to do with the document not adhering to the standard that it claims to support. These do not include warnings, which are recovered from and added to the document object. The RSS4j toolkit never hanldes this type of exception. Instead, it is used to abstract anything that goes wrong (including I/O or DOM) and throw it up the stack to the client code.

See Also:
Serialized Form

Field Summary
private  java.lang.Exception exception
          The nested exception for this one to contain
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
RssParseException(java.lang.Exception e)
          Constructor
RssParseException(java.lang.String s)
          Constructor
RssParseException(java.lang.String s, java.lang.Exception e)
          Constructor
 
Method Summary
 java.lang.Exception getException()
          Returns the nested exception.
 java.lang.String getMessage()
          Returns the description of this exception, or the description of the nested exception if this one has not been set.
 java.lang.String toString()
          Returns a canonical representation of this exception, or the nested exception if there is one.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

exception

private java.lang.Exception exception
The nested exception for this one to contain

Constructor Detail

RssParseException

public RssParseException(java.lang.String s)
Constructor

Parameters:
s - An description of the exception

RssParseException

public RssParseException(java.lang.String s,
                         java.lang.Exception e)
Constructor

Parameters:
s - A description of the exception
e - The exception to nest inside this one

RssParseException

public RssParseException(java.lang.Exception e)
Constructor

Parameters:
e - The exception to nest inside this one
Method Detail

getException

public java.lang.Exception getException()
Returns the nested exception.

Returns:
The nested exception

getMessage

public java.lang.String getMessage()
Returns the description of this exception, or the description of the nested exception if this one has not been set.

Overrides:
getMessage in class java.lang.Throwable
Returns:
The exception's description

toString

public java.lang.String toString()
Returns a canonical representation of this exception, or the nested exception if there is one.

Overrides:
toString in class java.lang.Throwable
Returns:
The exception as a String

Copyright (c) 2000-2002 ChurchillObjects.com