Open topic with navigation

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 LeanFT 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.