com.gargoylesoftware.base.objectstore

Class ObjectStoreException

public class ObjectStoreException extends RuntimeException

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

Version: $Revision: 1.4 $

Author: Mike Bowler

Field Summary
Exceptionexception_
static longserialVersionUID
Constructor Summary
ObjectStoreException(String message)
Create an instance
ObjectStoreException(Exception e)
Create an instance
ObjectStoreException(String message, Exception e)
Create an instance
protected ObjectStoreException()
Create an instance
Method Summary
ExceptiongetException()
Return the enclosed exception
voidprintStackTrace(PrintWriter writer)
Print the stack trace.
voidprintStackTrace(PrintStream stream)
Print the stack trace.

Field Detail

exception_

private final Exception exception_

serialVersionUID

private static final long serialVersionUID

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