Help us shape the future of Go! Take the 2026 Go Developer Survey

aidlerrors

package
v0.0.6 Latest Latest
Warning

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

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

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

	// Fat reply header codes — internal protocol, not real exceptions.
	ExHasNotedAppOpsHeader ExceptionCode = -127
	ExHasReplyHeader       ExceptionCode = -128
)

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.

Jump to

Keyboard shortcuts

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