me.chanjar.weixin.common.session

## 类 TooManyActiveSessionsException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - java.lang.IllegalStateException
        - - me.chanjar.weixin.common.session.TooManyActiveSessionsException

所有已实现的接口:
  Serializable

    public class TooManyActiveSessionsException
    extends IllegalStateException

An exception that indicates the maximum number of active sessions has been reached and the server is refusing to create any new sessions.

另请参阅:
  序列化表格

### 构造器概要

构造器
构造器和说明
`TooManyActiveSessionsException(String message, int maxActive)` Creates a new TooManyActiveSessionsException.

### 方法概要

方法
`int` `getMaxActiveSessions()` Gets the maximum number of sessions allowed by the session manager.

### 从类继承的方法 java.lang.Throwable

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

### 从类继承的方法 java.lang.Object

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

### 构造器详细资料

#### TooManyActiveSessionsException

    public TooManyActiveSessionsException(String message,
                                  int maxActive)

Creates a new TooManyActiveSessionsException.

参数:
  `message` - A description for the exception.
  `maxActive` - The maximum number of active sessions allowed by the session manager.

### 方法详细资料

#### getMaxActiveSessions

    public int getMaxActiveSessions()

Gets the maximum number of sessions allowed by the session manager.

返回:
  The maximum number of sessions allowed by the session manager.