com.ibm.rational.test.lt.kernel.services
Class OutOfScopeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.ibm.rational.test.lt.kernel.services.OutOfScopeException
- All Implemented Interfaces:
- Serializable
public class OutOfScopeException
- extends RuntimeException
OutOfScopeException indicates that an object created by
ITestExecutionServices
has been referenced outside of its
intended scope.
Some of the objects returned by ITestExecutionServices
methods retain a WeakReference to other kernel objects to provide the correct functionality. While unlikely,
it is possible to save such an object so that it would be accessible after the referenced
kernel objects have been disposed. Any time one of these weak references produces a null value,
the Test Execution Services method throws an OutOfScopeException instead of a NullPointerException.
The custom code user should not need to catch this exception, as this situation should not occur
in normal usage. However, if this does occur,the kernel will catch the exception and put a message event in the TestLog where it occurred and
will log a message to the PDLog containing a stack trace.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
OutOfScopeException
public OutOfScopeException()
OutOfScopeException
public OutOfScopeException(String message)
- Parameters:
message
-
OutOfScopeException
public OutOfScopeException(String message,
Throwable cause)
- Parameters:
message
- cause
-
OutOfScopeException
public OutOfScopeException(Throwable cause)
- Parameters:
cause
-
© Copyright IBM Corp. 2012. All rights reserved.