js.common
Class JSException
java.lang.Object
java.lang.Throwable
java.lang.Exception
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
|
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 |
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 exceptiontarget - target exception
JSException
public JSException(java.lang.Throwable target)
- Parameters:
target - target exception
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