Copyright (c) 2000-2002 ChurchillObjects.com

churchillobjects.rss4j.generator
Class RssGenerationException

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

public class RssGenerationException
extends java.lang.Exception

Indicates an exception occurred during the generation of the RSS document. This may be a problem with writing to a file or stream, missing critical data or other issue, either the fault of the developer or user. If this exception is caused by another system exception (such as i/o), then the original exception will be encapsulated within this one. The RSS4j toolkit never hanldes this type of exception. Instead, it is used to abstract anything that goes wrong (including I/O or SAX) 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
RssGenerationException(java.lang.Exception e)
          Constructor
RssGenerationException(java.lang.String s)
          Constructor
RssGenerationException(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

RssGenerationException

public RssGenerationException(java.lang.String s)
Constructor

Parameters:
s - An description of the exception

RssGenerationException

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

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

RssGenerationException

public RssGenerationException(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