AudioOutput.WriteException


public final class AudioOutput.WriteException extends Exception


Thrown when a failure occurs writing to the output.

Summary

Public fields

final int

The error value returned from the implementation.

final boolean

If the exception may be recovered by recreating the output.

Public constructors

WriteException(int errorCode, boolean isRecoverable)

Creates an instance.

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

errorCode

public final int errorCode

The error value returned from the implementation. If the sink writes to a platform AudioTrack, this will be the error value returned from write or write. Otherwise, the meaning of the error code depends on the implementation.

isRecoverable

public final boolean isRecoverable

If the exception may be recovered by recreating the output.

Public constructors

WriteException

public WriteException(int errorCode, boolean isRecoverable)

Creates an instance.

Parameters
int errorCode

The error value returned from the output implementation.

boolean isRecoverable

Whether the exception can be recovered by recreating the output.