BluetoothSocketException 类

定义

[Android.Runtime.Register("android/bluetooth/BluetoothSocketException", ApiSince=34, DoNotGenerateAcw=true)]
public class BluetoothSocketException : Java.IO.IOException
[<Android.Runtime.Register("android/bluetooth/BluetoothSocketException", ApiSince=34, DoNotGenerateAcw=true)>]
type BluetoothSocketException = class
    inherit IOException
继承
BluetoothSocketException
属性

构造函数

BluetoothSocketException(BluetoothSocketExceptionReason)
BluetoothSocketException(BluetoothSocketExceptionReason, String)
BluetoothSocketException(IntPtr, JniHandleOwnership)

字段

BluetoothOffFailure
is_generated (继承自 Throwable)
L2capAclFailure
L2capClientSecurityFailure
L2capInsufficientAuthentication
L2capInsufficientAuthorization
L2capInsufficientEncryption
L2capInsufficientEncryptKeySize
L2capInvalidParameters
L2capInvalidSourceCid
L2capNoPsmAvailable
L2capNoResources
L2capSourceCidAlreadyAllocated
L2capTimeout
L2capUnacceptableParameters
L2capUnknown
NullDevice
RpcFailure
SocketClosed
SocketConnectionFailure
SocketManagerFailure
Unspecified

属性

Cause

返回此可引发的原因,或者 null 原因不存在或未知。

(继承自 Throwable)
Class (继承自 Throwable)
ErrorCode
Handle

基础 Android 实例的句柄。

(继承自 Throwable)
JniIdentityHashCode (继承自 Throwable)
JniPeerMembers
LocalizedMessage

创建此可引发的本地化说明。

(继承自 Throwable)
Message

返回此可引发的详细信息消息字符串。

(继承自 Throwable)
PeerReference (继承自 Throwable)
StackTrace (继承自 Throwable)
ThresholdClass
ThresholdType

方法

AddSuppressed(Throwable)

将指定的异常追加到取消的异常,以便传递此异常。

(继承自 Throwable)
Dispose() (继承自 Throwable)
Dispose(Boolean) (继承自 Throwable)
FillInStackTrace()

填充执行堆栈跟踪。

(继承自 Throwable)
GetStackTrace()

提供对打印的 #printStackTrace()堆栈跟踪信息的编程访问。

(继承自 Throwable)
GetSuppressed()

返回一个数组,其中包含禁止显示的所有异常,通常是由 try-with-resources 语句为了传递此异常。

(继承自 Throwable)
InitCause(Throwable)

初始化 此可引发到指定值的原因

(继承自 Throwable)
PrintStackTrace()

打印此可引发结果及其回溯到标准错误流。

(继承自 Throwable)
PrintStackTrace(PrintStream)

打印此可引发的输出及其回溯到指定的打印流。

(继承自 Throwable)
PrintStackTrace(PrintWriter)

打印此可引发结果及其回溯到指定的打印编写器。

(继承自 Throwable)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Throwable)
SetStackTrace(StackTraceElement[])

设置将由相关方法返回 #getStackTrace() 和打印 #printStackTrace() 的堆栈跟踪元素。

(继承自 Throwable)
ToString() (继承自 Throwable)
UnregisterFromRuntime() (继承自 Throwable)

显式接口实现

IJavaPeerable.Disposed() (继承自 Throwable)
IJavaPeerable.DisposeUnlessReferenced() (继承自 Throwable)
IJavaPeerable.Finalized() (继承自 Throwable)
IJavaPeerable.JniManagedPeerState (继承自 Throwable)
IJavaPeerable.SetJniIdentityHashCode(Int32) (继承自 Throwable)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (继承自 Throwable)
IJavaPeerable.SetPeerReference(JniObjectReference) (继承自 Throwable)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

适用于