public class OutOfScopeException extends RuntimeException
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.
Constructor and Description |
---|
OutOfScopeException() |
OutOfScopeException(String message) |
OutOfScopeException(String message,
Throwable cause) |
OutOfScopeException(Throwable cause) |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public OutOfScopeException()
public OutOfScopeException(String message)
message
- public OutOfScopeException(String message, Throwable cause)
message
- cause
- public OutOfScopeException(Throwable cause)
cause
- © Copyright IBM Corp. 2013. All rights reserved.