com.sun.jini.norm
Class StoreException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sun.jini.norm.StoreException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CorruptedStoreException

 class StoreException
extends Exception

Base class for exceptions thrown by PersistantStore.

Author:
Sun Microsystems, Inc.

Field Summary
(package private)  Throwable nestedException
          The exception (if any) that triggered the store exception.
private static long serialVersionUID
           
 
Constructor Summary
StoreException(String str)
          Create a store exception, forwarding a string to the superclass constructor.
StoreException(String str, Throwable ex)
          Create an exception, forwarding a string to the superclass constructor.
 
Method Summary
 void printStackTrace()
          Print the stack trace of this exception, plus that of the nested exception, if any.
 void printStackTrace(PrintStream out)
          Print the stack trace of this exception, plus that of the nested exception, if any.
 void printStackTrace(PrintWriter out)
          Print the stack trace of this exception, plus that of the nested exception, if any.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

nestedException

final Throwable nestedException
The exception (if any) that triggered the store exception. This may be null.

Constructor Detail

StoreException

StoreException(String str)
Create a store exception, forwarding a string to the superclass constructor.

Parameters:
str - a detailed message for the exception

StoreException

StoreException(String str,
               Throwable ex)
Create an exception, forwarding a string to the superclass constructor.

Parameters:
str - a detailed message for the exception
ex - root cause for the exception, may be null
Method Detail

printStackTrace

public void printStackTrace()
Print the stack trace of this exception, plus that of the nested exception, if any.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream out)
Print the stack trace of this exception, plus that of the nested exception, if any.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter out)
Print the stack trace of this exception, plus that of the nested exception, if any.

Overrides:
printStackTrace in class Throwable


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.