Skip to content

AudioError

1 min read

Import: import system.audio;

Read the audio guide for usage, limits, and current platform restrictions.

AudioError

A stable audio failure code and a readable explanation.

public class AudioError: Error

constructor

Creates a failure with a machine-readable code and message.

public constructor(code: string, message: string)

code

Returns the failure code, such as EINVAL, EFORMAT, ECLOSED, or ENOTSUP.

public fun code(): string

message

Returns a readable explanation of the failure.

public fun message(): string