org.apache.openejb.core
Class NoSuchObjectException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by java.rmi.NoSuchObjectException
                      extended by org.apache.openejb.core.NoSuchObjectException
All Implemented Interfaces:
Serializable

public class NoSuchObjectException
extends NoSuchObjectException

Subclass of java.rmi.NoSuchObjectException which adds init cause to the exception.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
NoSuchObjectException(String detailMessage)
           
NoSuchObjectException(String detailMessage, Throwable throwable)
          Constructs a new instance of this class with its walkback, message and cause filled in.
NoSuchObjectException(Throwable throwable)
           
 
Method Summary
 Throwable getCause()
          Answers the cause of this Throwable, or null if there is no cause.
 String getLocalizedMessage()
          Answers the extra information message which was provided when the throwable was created.
 NoSuchObjectException initCause(Throwable throwable)
          Initialize the cause of the receiver.
 void printStackTrace()
          Outputs a printable representation of the receiver's walkback on the System.err stream.
 void printStackTrace(PrintStream err)
          Outputs a printable representation of the receiver's walkback on the stream specified by the argument.
 void printStackTrace(PrintWriter err)
          Outputs a printable representation of the receiver's walkback on the writer specified by the argument.
 String toString()
          Answers a string containing a concise, human-readable description of the receiver.
 
Methods inherited from class java.rmi.RemoteException
getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchObjectException

public NoSuchObjectException(String detailMessage)

NoSuchObjectException

public NoSuchObjectException(String detailMessage,
                             Throwable throwable)
Constructs a new instance of this class with its walkback, message and cause filled in.

Parameters:
detailMessage - String The detail message for the exception.
throwable - The cause of this Throwable

NoSuchObjectException

public NoSuchObjectException(Throwable throwable)
Method Detail

getLocalizedMessage

public String getLocalizedMessage()
Answers the extra information message which was provided when the throwable was created. If no message was provided at creation time, then answer null. Subclasses may override this method to answer localized text for the message.

Overrides:
getLocalizedMessage in class Throwable
Returns:
String The receiver's message.

printStackTrace

public void printStackTrace()
Outputs a printable representation of the receiver's walkback on the System.err stream.

Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream err)
Outputs a printable representation of the receiver's walkback on the stream specified by the argument.

Overrides:
printStackTrace in class Throwable
Parameters:
err - PrintStream The stream to write the walkback on.

printStackTrace

public void printStackTrace(PrintWriter err)
Outputs a printable representation of the receiver's walkback on the writer specified by the argument.

Overrides:
printStackTrace in class Throwable
Parameters:
err - PrintWriter The writer to write the walkback on.

toString

public String toString()
Answers a string containing a concise, human-readable description of the receiver.

Overrides:
toString in class Throwable
Returns:
String a printable representation for the receiver.

initCause

public NoSuchObjectException initCause(Throwable throwable)
Initialize the cause of the receiver. The cause cannot be reassigned.

Overrides:
initCause in class Throwable
Parameters:
throwable - The cause of this Throwable
Returns:
the receiver.
Throws:
IllegalArgumentException - when the cause is the receiver
IllegalStateException - when the cause has already been initialized

getCause

public Throwable getCause()
Answers the cause of this Throwable, or null if there is no cause.

Overrides:
getCause in class RemoteException
Returns:
Throwable The receiver's cause.


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.