js.common
Class JSException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by js.common.JSException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AgentCreationException, CouldNotAddNAException, CouldNotAddVAException, CouldNotChangeConTypeException, CouldNotCreateObjectException, CouldNotCreateVAException, CouldNotLockVAException, CouldNotRemoveNAException, CouldNotUnlockVAException, InvalidObjectHandleException, NoNodesAvailableException, NoPossibleNodeFoundException

public class JSException
extends java.lang.Exception

Execption thrown by the JRS.

Author:
Johannes Testori
See Also:
Serialized Form

Constructor Summary
JSException()
           
JSException(java.lang.String msg)
           
JSException(java.lang.String msg, java.lang.Throwable target)
           
JSException(java.lang.Throwable target)
           
 
Method Summary
static void forward(java.lang.Exception e)
          Forwards an exception.
 void printStackTrace()
          Prints the stacktrace of this exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JSException

public JSException()

JSException

public JSException(java.lang.String msg)
Parameters:
msg - User defined message for this exception

JSException

public JSException(java.lang.String msg,
                   java.lang.Throwable target)
Parameters:
msg - User defined message for this exception
target - target exception

JSException

public JSException(java.lang.Throwable target)
Parameters:
target - target exception
Method Detail

forward

public static void forward(java.lang.Exception e)
                    throws JSException
Forwards an exception. If the given exception is a JSException, it will be thrown as it is, otherwise a new JSException is created (with the given exception as target exception) and thrown.

Parameters:
e - exception to be forwarded
Throws:
JSException

printStackTrace

public void printStackTrace()
Prints the stacktrace of this exception. If it contains a target execption, the stacktrace of the target will be printed.

Overrides:
printStackTrace in class java.lang.Throwable