exceptions

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2026 License: CC0-1.0 Imports: 6 Imported by: 1

Documentation

Overview

Package exceptions provides Go bindings for android.net.ipsec.ike.exceptions.

Index

Constants

View Source
const (
	ErrorTypeAuthenticationFailed       = consts.ErrorTypeAuthenticationFailed
	ErrorTypeChildSaNotFound            = consts.ErrorTypeChildSaNotFound
	ErrorTypeFailedCpRequired           = consts.ErrorTypeFailedCpRequired
	ErrorTypeInternalAddressFailure     = consts.ErrorTypeInternalAddressFailure
	ErrorTypeInvalidIkeSpi              = consts.ErrorTypeInvalidIkeSpi
	ErrorTypeInvalidKePayload           = consts.ErrorTypeInvalidKePayload
	ErrorTypeInvalidMajorVersion        = consts.ErrorTypeInvalidMajorVersion
	ErrorTypeInvalidMessageId           = consts.ErrorTypeInvalidMessageId
	ErrorTypeInvalidSelectors           = consts.ErrorTypeInvalidSelectors
	ErrorTypeInvalidSyntax              = consts.ErrorTypeInvalidSyntax
	ErrorTypeNoAdditionalSas            = consts.ErrorTypeNoAdditionalSas
	ErrorTypeNoProposalChosen           = consts.ErrorTypeNoProposalChosen
	ErrorTypeSinglePairRequired         = consts.ErrorTypeSinglePairRequired
	ErrorTypeTemporaryFailure           = consts.ErrorTypeTemporaryFailure
	ErrorTypeTsUnacceptable             = consts.ErrorTypeTsUnacceptable
	ErrorTypeUnsupportedCriticalPayload = consts.ErrorTypeUnsupportedCriticalPayload
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type IkeException added in v0.0.8

type IkeException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IkeException wraps android.net.ipsec.ike.exceptions.IkeException.

func (*IkeException) ToString added in v0.0.8

func (m *IkeException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.IkeException.toString.

type IkeIOException

type IkeIOException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IkeIOException wraps android.net.ipsec.ike.exceptions.IkeIOException.

func NewIkeIOException

func NewIkeIOException(vm *jni.VM, arg0 *jni.Object) (*IkeIOException, error)

NewIkeIOException creates a new android.net.ipsec.ike.exceptions.IkeIOException instance.

func (*IkeIOException) GetCause0

func (m *IkeIOException) GetCause0() (*jni.Object, error)

GetCause0 calls android.net.ipsec.ike.exceptions.IkeIOException.getCause.

func (*IkeIOException) GetCause0_1

func (m *IkeIOException) GetCause0_1() (*jni.Object, error)

GetCause0_1 calls android.net.ipsec.ike.exceptions.IkeIOException.getCause.

func (*IkeIOException) ToString added in v0.0.8

func (m *IkeIOException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.IkeIOException.toString.

type IkeInternalException

type IkeInternalException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IkeInternalException wraps android.net.ipsec.ike.exceptions.IkeInternalException.

func NewIkeInternalException

func NewIkeInternalException(vm *jni.VM, arg0 string, arg1 *jni.Object) (*IkeInternalException, error)

NewIkeInternalException creates a new android.net.ipsec.ike.exceptions.IkeInternalException instance.

func (*IkeInternalException) ToString added in v0.0.8

func (m *IkeInternalException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.IkeInternalException.toString.

type IkeNetworkLostException

type IkeNetworkLostException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IkeNetworkLostException wraps android.net.ipsec.ike.exceptions.IkeNetworkLostException.

func NewIkeNetworkLostException

func NewIkeNetworkLostException(vm *jni.VM, arg0 *jni.Object) (*IkeNetworkLostException, error)

NewIkeNetworkLostException creates a new android.net.ipsec.ike.exceptions.IkeNetworkLostException instance.

func (*IkeNetworkLostException) GetNetwork

func (m *IkeNetworkLostException) GetNetwork() (*jni.Object, error)

GetNetwork calls android.net.ipsec.ike.exceptions.IkeNetworkLostException.getNetwork.

func (*IkeNetworkLostException) ToString added in v0.0.8

func (m *IkeNetworkLostException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.IkeNetworkLostException.toString.

type IkeNonProtocolException added in v0.0.8

type IkeNonProtocolException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IkeNonProtocolException wraps android.net.ipsec.ike.exceptions.IkeNonProtocolException.

func (*IkeNonProtocolException) ToString added in v0.0.8

func (m *IkeNonProtocolException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.IkeNonProtocolException.toString.

type IkeProtocolException

type IkeProtocolException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IkeProtocolException wraps android.net.ipsec.ike.exceptions.IkeProtocolException.

func (*IkeProtocolException) GetErrorType

func (m *IkeProtocolException) GetErrorType() (int32, error)

GetErrorType calls android.net.ipsec.ike.exceptions.IkeProtocolException.getErrorType.

func (*IkeProtocolException) ToString added in v0.0.8

func (m *IkeProtocolException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.IkeProtocolException.toString.

type IkeTimeoutException

type IkeTimeoutException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

IkeTimeoutException wraps android.net.ipsec.ike.exceptions.IkeTimeoutException.

func NewIkeTimeoutException

func NewIkeTimeoutException(vm *jni.VM, arg0 string) (*IkeTimeoutException, error)

NewIkeTimeoutException creates a new android.net.ipsec.ike.exceptions.IkeTimeoutException instance.

func (*IkeTimeoutException) ToString added in v0.0.8

func (m *IkeTimeoutException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.IkeTimeoutException.toString.

type InvalidKeException

type InvalidKeException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

InvalidKeException wraps android.net.ipsec.ike.exceptions.InvalidKeException.

func NewInvalidKeException

func NewInvalidKeException(vm *jni.VM, arg0 int32) (*InvalidKeException, error)

NewInvalidKeException creates a new android.net.ipsec.ike.exceptions.InvalidKeException instance.

func (*InvalidKeException) GetDhGroup

func (m *InvalidKeException) GetDhGroup() (int32, error)

GetDhGroup calls android.net.ipsec.ike.exceptions.InvalidKeException.getDhGroup.

func (*InvalidKeException) ToString added in v0.0.8

func (m *InvalidKeException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.InvalidKeException.toString.

type InvalidMajorVersionException

type InvalidMajorVersionException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

InvalidMajorVersionException wraps android.net.ipsec.ike.exceptions.InvalidMajorVersionException.

func NewInvalidMajorVersionException

func NewInvalidMajorVersionException(vm *jni.VM, arg0 int8) (*InvalidMajorVersionException, error)

NewInvalidMajorVersionException creates a new android.net.ipsec.ike.exceptions.InvalidMajorVersionException instance.

func (*InvalidMajorVersionException) GetMajorVersion

func (m *InvalidMajorVersionException) GetMajorVersion() (int8, error)

GetMajorVersion calls android.net.ipsec.ike.exceptions.InvalidMajorVersionException.getMajorVersion.

func (*InvalidMajorVersionException) ToString added in v0.0.8

func (m *InvalidMajorVersionException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.InvalidMajorVersionException.toString.

type InvalidSelectorsException

type InvalidSelectorsException struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

InvalidSelectorsException wraps android.net.ipsec.ike.exceptions.InvalidSelectorsException.

func NewInvalidSelectorsException

func NewInvalidSelectorsException(vm *jni.VM, arg0 int32, arg1 *jni.Object) (*InvalidSelectorsException, error)

NewInvalidSelectorsException creates a new android.net.ipsec.ike.exceptions.InvalidSelectorsException instance.

func (*InvalidSelectorsException) GetIpSecPacketInfo

func (m *InvalidSelectorsException) GetIpSecPacketInfo() (*jni.Object, error)

GetIpSecPacketInfo calls android.net.ipsec.ike.exceptions.InvalidSelectorsException.getIpSecPacketInfo.

func (*InvalidSelectorsException) GetIpSecSpi

func (m *InvalidSelectorsException) GetIpSecSpi() (int32, error)

GetIpSecSpi calls android.net.ipsec.ike.exceptions.InvalidSelectorsException.getIpSecSpi.

func (*InvalidSelectorsException) ToString added in v0.0.8

func (m *InvalidSelectorsException) ToString() (string, error)

ToString calls android.net.ipsec.ike.exceptions.InvalidSelectorsException.toString.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL