jrun.jms.core.persistence
Class PersistenceException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--jrun.jms.core.persistence.PersistenceException
All Implemented Interfaces:
java.io.Serializable

public class PersistenceException
extends java.lang.Exception

The PersistenceException is a general exception returned by the persistence layer. Aside from holding the reason for this exception, the client can also link another excetpion to it.

Version:
$Revision: 1.1 $ $Date: 2001/09/04 02:24:20 $
Author:
Jim Alateras
See Also:
Serialized Form

Constructor Summary
PersistenceException(java.lang.String reason)
          Construct an instance of this exception with the specified reason.
PersistenceException(java.lang.String reason, java.lang.Exception exception)
          Construct an instance of this exception with the specified reason and an exception to link too
 
Method Summary
 java.lang.Exception getLinkedException(java.lang.Exception exception)
          Return a reference ot the linked exception
 void setLinkedException(java.lang.Exception exception)
          Set the linked exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PersistenceException

public PersistenceException(java.lang.String reason)
Construct an instance of this exception with the specified reason.
Parameters:
reason - - the reason for the exception

PersistenceException

public PersistenceException(java.lang.String reason,
                            java.lang.Exception exception)
Construct an instance of this exception with the specified reason and an exception to link too
Parameters:
reason - - the reason for the exception
exception - - the linked exception
Method Detail

setLinkedException

public void setLinkedException(java.lang.Exception exception)
Set the linked exception
Parameters:
exception - - this is the exception to link

getLinkedException

public java.lang.Exception getLinkedException(java.lang.Exception exception)
Return a reference ot the linked exception
Returns:
Exception - the linked exception


Copyright � 2002 Macromedia Corporation. All Rights Reserved.