Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BinderError ¶
type BinderError struct {
Op string // operation that failed (e.g., "ioctl", "mmap")
Err error // underlying error (typically syscall.Errno)
}
BinderError represents a driver-level Binder error (e.g., ioctl failure).
func (*BinderError) Error ¶
func (e *BinderError) Error() string
func (*BinderError) Unwrap ¶
func (e *BinderError) Unwrap() error
type ExceptionCode ¶
type ExceptionCode int32
ExceptionCode represents an AIDL exception code sent in a reply parcel.
const ( ExceptionNone ExceptionCode = 0 ExceptionSecurity ExceptionCode = -1 ExceptionBadParcelable ExceptionCode = -2 ExceptionIllegalArgument ExceptionCode = -3 ExceptionNullPointer ExceptionCode = -4 ExceptionIllegalState ExceptionCode = -5 ExceptionNetworkMain ExceptionCode = -6 ExceptionUnsupportedOperation ExceptionCode = -7 ExceptionServiceSpecific ExceptionCode = -8 ExceptionParcelable ExceptionCode = -9 ExceptionTransactionFailed ExceptionCode = -129 )
func (ExceptionCode) String ¶
func (c ExceptionCode) String() string
String returns a human-readable name for the exception code.
type StatusError ¶
type StatusError struct {
Exception ExceptionCode
Message string
// ServiceSpecificCode is set when Exception == ExceptionServiceSpecific.
ServiceSpecificCode int32
}
StatusError represents an AIDL-level exception returned in a Status block.
func (*StatusError) Error ¶
func (e *StatusError) Error() string
func (*StatusError) Unwrap ¶
func (e *StatusError) Unwrap() error
type TransactionError ¶
type TransactionError struct {
Code TransactionErrorCode
}
TransactionError represents a Binder transaction failure.
func (*TransactionError) Error ¶
func (e *TransactionError) Error() string
func (*TransactionError) Unwrap ¶
func (e *TransactionError) Unwrap() error
type TransactionErrorCode ¶
type TransactionErrorCode int32
TransactionErrorCode represents a Binder transaction failure code.
const ( TransactionErrorDeadObject TransactionErrorCode = -32 TransactionErrorFailedTransaction TransactionErrorCode = -33 TransactionErrorFDSNotAllowed TransactionErrorCode = -34 TransactionErrorUnexpectedNull TransactionErrorCode = -35 )
func (TransactionErrorCode) String ¶
func (c TransactionErrorCode) String() string
String returns a human-readable name for the transaction error code.
Click to show internal directories.
Click to hide internal directories.