Added in API level 31
    InvalidMajorVersionException
class InvalidMajorVersionException : IkeProtocolException
This exception is thrown when major version of an inbound message is higher than 2.
Summary
| Inherited constants | |
|---|---|
| Public constructors | |
|---|---|
| InvalidMajorVersionException(version: Byte)Construct a instance of InvalidMajorVersionException | |
| Public methods | |
|---|---|
| Byte | Return the major version included in this exception. | 
| Inherited functions | |
|---|---|
Public constructors
InvalidMajorVersionException
Added in API level 31
      InvalidMajorVersionException(version: Byte)
Construct a instance of InvalidMajorVersionException
Except for testing, IKE library users normally do not instantiate this object themselves but instead get a reference via IkeSessionCallback or ChildSessionCallback.
| Parameters | |
|---|---|
| version | Byte: the major version in received packet | 
Public methods
getMajorVersion
Added in API level 31
      fun getMajorVersion(): Byte
Return the major version included in this exception.
| Return | |
|---|---|
| Byte | the major version | 
