com.ansys.ingress.client.api

## Class NoLicenseAvailableException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - com.ansys.ingress.commons.IngressException
      - - com.ansys.ingress.client.api.EkmException
        - - com.ansys.ingress.client.api.ConnectionException
          - - com.ansys.ingress.client.api.NoLicenseAvailableException

- All Implemented Interfaces:
    com.ansys.ingress.commons.IngressExceptionDetails, java.io.Serializable

      public class NoLicenseAvailableException
      extends ConnectionException

  NoLicenseAvailableException indicates not licenses are available for a user when logging into EKM.
  See Also:
    Serialized Form

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.ansys.ingress.client.api.ConnectionException

      `ConnectionException.Reason`

  - ### Field Summary

    - ### Fields inherited from class com.ansys.ingress.commons.IngressException

      `DISABLE_USER_FAILED, ENABLE_USER_FAILED`

    - ### Fields inherited from interface com.ansys.ingress.commons.IngressExceptionDetails

      `RESOURCE_NAME`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NoLicenseAvailableException(java.lang.String host, java.lang.String username, com.ansys.ingress.commons.ws.ErrorInfo info)` Creates a new instance of NoLicenseAvailableException.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getMessage()`

    - ### Methods inherited from class com.ansys.ingress.client.api.ConnectionException

      `getWorkspace, setWorkspace`

    - ### Methods inherited from class com.ansys.ingress.client.api.EkmException

      `getBundlePackage, getServerErrorDetails, getServerErrorMessage, getServerException, getServerRootCause, getServerRootCauseMessage, getServerStackTrace, getStatusCode, setServerErrorMessage, setServerException, setServerRootCause, setServerRootCauseMessage, setServerStackTrace, setStatusCode, toString`

    - ### Methods inherited from class com.ansys.ingress.commons.IngressException

      `getBundleBasename, getDetailKey, getKey, getLocalizedMessage, getLocalizedMessage, getParams, messageFromKey, setKey, setParams`

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

      `addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

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

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

    - ### Methods inherited from interface com.ansys.ingress.commons.IngressExceptionDetails

      `getCause`

- - ### Constructor Detail

    - #### NoLicenseAvailableException

          public NoLicenseAvailableException(java.lang.String host,
                                             java.lang.String username,
                                             com.ansys.ingress.commons.ws.ErrorInfo info)

      Creates a new instance of NoLicenseAvailableException. TODO
      Parameters:
        `host` - the EKM server
        `username` - the user attempting to log in
        `info` - information about the error

  - ### Method Detail

    - #### getMessage

          public java.lang.String getMessage()

      Overrides:
        `getMessage` in class `EkmException`