Class ObjectStoreException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.gargoylesoftware.base.objectstore.ObjectStoreException
-
- All Implemented Interfaces:
java.io.Serializable
public class ObjectStoreException extends java.lang.RuntimeException
Thrown when an error occuring during the processing of an object store.- Version:
- $Revision: 1.4 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Exception
exception_
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protected
ObjectStoreException()
Create an instanceObjectStoreException(java.lang.Exception e)
Create an instanceObjectStoreException(java.lang.String message)
Create an instanceObjectStoreException(java.lang.String message, java.lang.Exception e)
Create an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Exception
getException()
Return the enclosed exceptionvoid
printStackTrace(java.io.PrintStream stream)
Print the stack trace.void
printStackTrace(java.io.PrintWriter writer)
Print the stack trace.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
exception_
private final java.lang.Exception exception_
-
-
Constructor Detail
-
ObjectStoreException
public ObjectStoreException(java.lang.String message)
Create an instance- Parameters:
message
- The text of the exception
-
ObjectStoreException
public ObjectStoreException(java.lang.Exception e)
Create an instance- Parameters:
e
- An exception that this exception is enclosing
-
ObjectStoreException
public ObjectStoreException(java.lang.String message, java.lang.Exception e)
Create an instance- Parameters:
message
- The text of the exceptione
- An exception that this exception is enclosing
-
ObjectStoreException
protected ObjectStoreException()
Create an instance
-
-
Method Detail
-
getException
public java.lang.Exception getException()
Return the enclosed exception- Returns:
- The enclosed exception or null if one was not specified
-
printStackTrace
public void printStackTrace(java.io.PrintWriter writer)
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
writer
- Where the stack trace will be written
-
printStackTrace
public void printStackTrace(java.io.PrintStream stream)
Print the stack trace. If this exception contains another exception then the stack traces for both will be printed.- Overrides:
printStackTrace
in classjava.lang.Throwable
- Parameters:
stream
- Where the stack trace will be written
-
-