net.jini.space
Class InternalSpaceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by net.jini.space.InternalSpaceException
All Implemented Interfaces:
Serializable

public class InternalSpaceException
extends RuntimeException

This exception denotes a problem with the local implementation of the JavaSpace interface. The detail field will give a description that can be reported to the space developer (and may be documented in that space's external documentation).

Author:
Sun Microsystems, Inc.
See Also:
JavaSpace, Serialized Form

Field Summary
 Throwable nestedException
          The exception (if any) that triggered the internal exception.
 
Constructor Summary
InternalSpaceException(String str)
          Create an exception, forwarding a string to the superclass constructor.
InternalSpaceException(String str, Throwable ex)
          Create an exception, forwarding a string and exception 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

nestedException

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

Constructor Detail

InternalSpaceException

public InternalSpaceException(String str)
Create an exception, forwarding a string to the superclass constructor.

Parameters:
str - a detail message

InternalSpaceException

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

Parameters:
str - a detail message
ex - a nested exception
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, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.