org.objectweb.proactive.core
Class ProActiveException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.objectweb.proactive.core.ProActiveException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ActiveObjectCreationException, MigrationException, NodeException, NonFunctionalException, ServeException

public class ProActiveException
extends java.lang.Exception

Generic exception root of all non runtime custom exceptions in ProActive

Since:
ProActive 0.9
Version:
1.0, 2001/10/23
Author:
ProActive Team
See Also:
Serialized Form

Field Summary
 java.lang.Throwable detail
           
 
Constructor Summary
ProActiveException()
          Constructs a ProActiveException with no specified detail message.
ProActiveException(java.lang.String s)
          Constructs a ProActiveException with the specified detail message.
ProActiveException(java.lang.String s, java.lang.Throwable ex)
          Constructs a ProActiveException with the specified detail message and nested exception.
ProActiveException(java.lang.Throwable ex)
          Constructs a ProActiveException with the specified detail message and nested exception.
 
Method Summary
 java.lang.String getMessage()
          Returns the detail message, including the message from the nested exception if there is one.
 java.lang.Throwable getTargetException()
          Returns the embedded target exception or null.
 void printStackTrace()
          Prints the composite message to System.err.
 void printStackTrace(java.io.PrintStream ps)
          Prints the composite message and the embedded stack trace to the specified stream ps.
 void printStackTrace(java.io.PrintWriter pw)
          Prints the composite message and the embedded stack trace to the specified print writer pw.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

detail

public java.lang.Throwable detail
Constructor Detail

ProActiveException

public ProActiveException()
Constructs a ProActiveException with no specified detail message.


ProActiveException

public ProActiveException(java.lang.String s)
Constructs a ProActiveException with the specified detail message.

Parameters:
s - the detail message

ProActiveException

public ProActiveException(java.lang.String s,
                          java.lang.Throwable ex)
Constructs a ProActiveException with the specified detail message and nested exception.

Parameters:
s - the detail message
ex - the nested exception

ProActiveException

public ProActiveException(java.lang.Throwable ex)
Constructs a ProActiveException with the specified detail message and nested exception.

Parameters:
ex - the nested exception
Method Detail

getTargetException

public java.lang.Throwable getTargetException()
Returns the embedded target exception or null.

Returns:
the embedded target exception or null.

getMessage

public java.lang.String getMessage()
Returns the detail message, including the message from the nested exception if there is one.


printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Prints the composite message and the embedded stack trace to the specified stream ps.

Parameters:
ps - the print stream

printStackTrace

public void printStackTrace()
Prints the composite message to System.err.


printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer pw.

Parameters:
pw - the print writer


Copyright ? October 2004 INRIA All Rights Reserved.