com.martiansoftware.trivialpersist
Class TrivialPersistException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.martiansoftware.trivialpersist.TrivialPersistException
All Implemented Interfaces:
Serializable

public class TrivialPersistException
extends Exception

The only kind of exception generated by TrivialPersist. Some exceptions (such as IOExceptions) may be wrapped by TrivialPersistExceptions. The original exceptions may be obtained via getCause().

Author:
Marty Lamb
See Also:
Serialized Form

Constructor Summary
TrivialPersistException(String s)
          Creates a new TrivialPersistException with the specified message
TrivialPersistException(String s, Throwable t)
          Creates a new TrivialPersistException with the specified message, wrapping the specified Throwable object
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrivialPersistException

public TrivialPersistException(String s)
Creates a new TrivialPersistException with the specified message

Parameters:
s - the exception's message

TrivialPersistException

public TrivialPersistException(String s,
                               Throwable t)
Creates a new TrivialPersistException with the specified message, wrapping the specified Throwable object

Parameters:
s - the exception's message
t - the Throwable object to wrap


Copyright © 2004, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/trivialpersist