Share this page

com.hp.lft.sdk

## Class GeneralLeanFtException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - com.hp.lft.sdk.GeneralLeanFtException

- All Implemented Interfaces:
    Serializable
  Direct Known Subclasses:
    DescriptionException, EmptySessionIdException, GeneralGridException, GeneralReplayException, GeneralServerErrorException, InvalidAgentException, InvalidFormatException, InvalidMessageFieldException, InvalidVersionException, LabNotConnectedException, MessageTypeNotSupportedException, NoValidLicenseException, ServerAlreadyInRecordModeException, ServerIsShuttingDownException, SessionNotFoundException

      public class GeneralLeanFtException
      extends Exception

  Represents general errors that occur during UFT Developer application execution.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GeneralLeanFtException(int errorCode, String message)` Constructs a new GeneralLeanFtException with a specified detail message and error code.
    `GeneralLeanFtException(String message)` Constructs a new GeneralLeanFtException with a specified detail message.
    `GeneralLeanFtException(String message, Throwable cause)` Constructs a new GeneralLeanFtException with the specified detail message and cause.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getErrorCode()` Returns the error code representing the error that occurred.

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### GeneralLeanFtException

          public GeneralLeanFtException(String message)

      Constructs a new GeneralLeanFtException with a specified detail message.
      Parameters:
        `message` - the detail message.

    - #### GeneralLeanFtException

          public GeneralLeanFtException(int errorCode,
                                String message)

      Constructs a new GeneralLeanFtException with a specified detail message and error code.
      Parameters:
        `errorCode` - the error code representing the error that occurred.
        `message` - the detail message.

    - #### GeneralLeanFtException

          public GeneralLeanFtException(String message,
                                Throwable cause)

      Constructs a new GeneralLeanFtException with the specified detail message and cause.
      Parameters:
        `message` - the detail message.
        `cause` - the cause of the error.

  - ### Method Detail

    - #### getErrorCode

          public int getErrorCode()

      Returns the error code representing the error that occurred.
      Returns:
        the error code representing the error that occurred.

Tips to improve your search results... UFT Developer Java SDK Reference Version 15.0-15.0.2 UFT Developer SDK Reference All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: