# AudioSink.ConfigurationException

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/audio/AudioSink.java+class:androidx.media3.exoplayer.audio.AudioSink.ConfigurationException)

*** ** * ** ***


```
public final class AudioSink.ConfigurationException extends Exception
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [kotlin.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) |||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) ||
|   |   | ↳ | [androidx.media3.exoplayer.audio.AudioSink.ConfigurationException](https://developer.android.com/reference/androidx/media3/exoplayer/audio/AudioSink.ConfigurationException) |

*** ** * ** ***

Thrown when a failure occurs configuring the sink.

## Summary

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/androidx/media3/common/Format` | `https://developer.android.com/reference/androidx/media3/exoplayer/audio/AudioSink.ConfigurationException#format()` Input `https://developer.android.com/reference/androidx/media3/common/Format` of the sink when the configuration failure occurs. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/media3/exoplayer/audio/AudioSink.ConfigurationException#ConfigurationException(java.lang.Throwable,androidx.media3.common.Format)(https://developer.android.com/reference/java/lang/Throwable.html cause, https://developer.android.com/reference/androidx/media3/common/Format format)` Creates a new configuration exception with the specified `cause` and no message. |
| `https://developer.android.com/reference/androidx/media3/exoplayer/audio/AudioSink.ConfigurationException#ConfigurationException(java.lang.String,androidx.media3.common.Format)(https://developer.android.com/reference/java/lang/String.html message, https://developer.android.com/reference/androidx/media3/common/Format format)` Creates a new configuration exception with the specified `message` and no cause. |

### Inherited methods

From [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) `synchronized final void` `https://developer.android.com/reference/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)(https://developer.android.com/reference/java/lang/Throwable.html exception)` `synchronized https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#fillInStackTrace()()` `synchronized https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#getCause()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#getLocalizedMessage()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#getMessage()()` `StackTraceElement[]` `https://developer.android.com/reference/java/lang/Throwable.html#getStackTrace()()` `synchronized final Throwable[]` `https://developer.android.com/reference/java/lang/Throwable.html#getSuppressed()()` `synchronized https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#initCause(java.lang.Throwable)(https://developer.android.com/reference/java/lang/Throwable.html cause)` `void` `https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace()()` `void` `https://developer.android.com/reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])(StackTraceElement[] stackTrace)` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#toString()()`

## Public fields

### format

```
public final Format format
```

Input `https://developer.android.com/reference/androidx/media3/common/Format` of the sink when the configuration failure occurs.

## Public constructors

### ConfigurationException

```
public ConfigurationException(Throwable cause, Format format)
```

Creates a new configuration exception with the specified `cause` and no message.

### ConfigurationException

```
public ConfigurationException(String message, Format format)
```

Creates a new configuration exception with the specified `message` and no cause.