AudioSessionException

class AudioSessionException(message: String, cause: Throwable? = null) : KlarinetException

Thrown when an audio session operation fails.

On Apple platforms, this wraps errors from AVAudioSession operations such as configuring the category/mode or activating/deactivating the session. On Android, this is generally not thrown since audio session management is handled by the system.

Parameters

message

A human-readable description of the session failure.

cause

The underlying exception, or null.

See also

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?