com.gargoylesoftware.base.objectstore
Class ObjectStoreException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended bycom.gargoylesoftware.base.objectstore.ObjectStoreException
All Implemented Interfaces:
Serializable

public class ObjectStoreException
extends RuntimeException

Thrown when an error occuring during the processing of an object store.

Version:
$Revision: 1.5 $
Author:
Mike Bowler
See Also:
Serialized Form

Constructor Summary
protected ObjectStoreException()
          Create an instance
  ObjectStoreException(Exception e)
          Create an instance
  ObjectStoreException(String message)
          Create an instance
  ObjectStoreException(String message, Exception e)
          Create an instance
 
Method Summary
 Exception getException()
          Return the enclosed exception
 void printStackTrace(PrintStream stream)
          Print the stack trace.
 void printStackTrace(PrintWriter writer)
          Print the stack trace.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObjectStoreException

public ObjectStoreException(String message)
Create an instance

Parameters:
message - The text of the exception

ObjectStoreException

public ObjectStoreException(Exception e)
Create an instance

Parameters:
e - An exception that this exception is enclosing

ObjectStoreException

public ObjectStoreException(String message,
                            Exception e)
Create an instance

Parameters:
message - The text of the exception
e - An exception that this exception is enclosing

ObjectStoreException

protected ObjectStoreException()
Create an instance

Method Detail

getException

public Exception getException()
Return the enclosed exception

Returns:
The enclosed exception or null if one was not specified

printStackTrace

public void printStackTrace(PrintWriter writer)
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.

Parameters:
writer - Where the stack trace will be written

printStackTrace

public void printStackTrace(PrintStream stream)
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.

Parameters:
stream - Where the stack trace will be written


Copyright © 1998-2005 Gargoyle Software Inc.. All Rights Reserved.