com.ibm.rational.test.lt.kernel.services

Class 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
    • Constructor Detail

      • 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 -
IBM Rational Performance Tester SDK

© Copyright IBM Corp. 2013. All rights reserved.