Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.mjh.switchrmi
Class RmiRemoteException  view RmiRemoteException download RmiRemoteException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.mjh.switchrmi.RmiRemoteException
All Implemented Interfaces:
java.io.Serializable

public class RmiRemoteException
extends java.lang.Exception


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  boolean isSwitchRMIException
           
private  java.lang.String originalExceptionType
           
private  java.lang.String originalMessage
           
private static java.lang.String PREFIX
           
private  java.lang.String remoteStackTrace
           
private static java.lang.String SEPARATOR
           
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
RmiRemoteException(java.lang.Exception ex)
           
RmiRemoteException(java.lang.String string)
           
 
Method Summary
 java.lang.String getMessage()
          Get the message associated with this Throwable.
 void printStackTrace(java.io.PrintStream stream)
          Print a stack trace to the specified PrintStream.
 void printStackTrace(java.io.PrintWriter writer)
          Prints the exception, the detailed message and the stack trace associated with this Throwable to the given PrintWriter.
 java.lang.String toString()
          Get a human-readable representation of this Throwable.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PREFIX

private static final java.lang.String PREFIX
See Also:
Constant Field Values

SEPARATOR

private static final java.lang.String SEPARATOR
See Also:
Constant Field Values

originalExceptionType

private java.lang.String originalExceptionType

originalMessage

private java.lang.String originalMessage

remoteStackTrace

private java.lang.String remoteStackTrace

isSwitchRMIException

private boolean isSwitchRMIException
Constructor Detail

RmiRemoteException

public RmiRemoteException(java.lang.String string)

RmiRemoteException

public RmiRemoteException(java.lang.Exception ex)
Method Detail

getMessage

public java.lang.String getMessage()
Description copied from class: java.lang.Throwable
Get the message associated with this Throwable.


toString

public java.lang.String toString()
Description copied from class: java.lang.Throwable
Get a human-readable representation of this Throwable. The detail message is retrieved by getLocalizedMessage(). Then, with a null detail message, this string is simply the object's class name; otherwise the string is getClass().getName() + ": " + message.


printStackTrace

public void printStackTrace(java.io.PrintStream stream)
Description copied from class: java.lang.Throwable
Print a stack trace to the specified PrintStream. See Throwable.printStackTrace()>Throwable.printStackTrace() 55 for the sample format.


printStackTrace

public void printStackTrace(java.io.PrintWriter writer)
Description copied from class: java.lang.Throwable
Prints the exception, the detailed message and the stack trace associated with this Throwable to the given PrintWriter. The actual output written is implemention specific. Use the result of getStackTrace() when more precise information is needed.

This implementation first prints a line with the result of this object's toString() method.
Then for all elements given by getStackTrace it prints a line containing three spaces, the string "at " and the result of calling the toString() method on the StackTraceElement object. If getStackTrace() returns an empty array it prints a line containing three spaces and the string "<<No stacktrace available>>".
Then if getCause() doesn't return null it adds a line starting with "Caused by: " and the result of calling toString() on the cause.
Then for every cause (of a cause, etc) the stacktrace is printed the same as for the top level Throwable except that as soon as all the remaining stack frames of the cause are the same as the the last stack frames of the throwable that the cause is wrapped in then a line starting with three spaces and the string "... X more" is printed, where X is the number of remaining stackframes.