# ExportException

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

*** ** * ** ***


```
@UnstableApi
class ExportException : Exception
```

<br />

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) ||
|   |   | ↳ | [androidx.media3.transformer.ExportException](https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException) |

*** ** * ** ***

Thrown when a non-locally recoverable export failure occurs.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.CodecInfo` The `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Codec` details. |
| `@https://developer.android.com/reference/java/lang/annotation/Documented.html @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) @https://developer.android.com/reference/java/lang/annotation/Target.html(value = https://developer.android.com/reference/java/lang/annotation/ElementType.html#TYPE_USE) @https://developer.android.com/reference/kotlin/androidx/annotation/IntDef(open = true, value = ) annotation https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.ErrorCode` Error codes that identify causes of `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Transformer` errors. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_AUDIO_PROCESSING_FAILED() = 6001` Caused by an audio processing failure. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_DECODER_INIT_FAILED() = 3001` Caused by a decoder initialization failure. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_DECODING_FAILED() = 3002` Caused by a failure while trying to decode media samples. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_DECODING_FORMAT_UNSUPPORTED() = 3003` Caused by trying to decode content whose format is not supported. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_ENCODER_INIT_FAILED() = 4001` Caused by an encoder initialization failure. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_ENCODING_FAILED() = 4002` Caused by a failure while trying to encode media samples. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED() = 4003` Caused by trying to encode content whose format is not supported. \* |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_FAILED_RUNTIME_CHECK() = 1001` Caused by a failed runtime check. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_BAD_HTTP_STATUS() = 2004` Caused by an HTTP server returning an unexpected HTTP response status code. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED() = 2007` Caused by the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/AssetLoader` trying to access cleartext HTTP traffic (meaning http:// rather than https://) when the app's Network Security Configuration does not permit it. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_FILE_NOT_FOUND() = 2005` Caused by a non-existent file. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_INVALID_HTTP_CONTENT_TYPE() = 2003` Caused by a server returning a resource with an invalid "Content-Type" HTTP header value. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_NETWORK_CONNECTION_FAILED() = 2001` Caused by a network connection failure. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT() = 2002` Caused by a network timeout, meaning the server is taking too long to fulfill a request. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_NO_PERMISSION() = 2006` Caused by lack of permission to perform an IO operation. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE() = 2008` Caused by reading data out of the data bound. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_IO_UNSPECIFIED() = 2000` Caused by an Input/Output error which could not be identified. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_MUXING_APPEND() = 7003` Caused by mismatching formats in MuxerWrapper. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_MUXING_FAILED() = 7001` Caused by a failure while muxing media samples. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_MUXING_TIMEOUT() = 7002` Caused by a timeout while muxing media samples. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_UNSPECIFIED() = 1000` Caused by an error whose cause could not be identified. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED() = 5001` Caused by a video frame processing failure. |

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#createForAssetLoader(java.lang.Throwable,int)(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!, errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates an instance for an `https://developer.android.com/reference/kotlin/androidx/media3/transformer/AssetLoader` related exception. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#createForAudioProcessing(androidx.media3.common.audio.AudioProcessor.UnhandledAudioFormatException,java.lang.String)( exception: https://developer.android.com/reference/kotlin/androidx/media3/common/audio/AudioProcessor.UnhandledAudioFormatException!, details: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html! )` Creates an instance for an audio processing related exception. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#createForCodec(java.lang.Throwable,int,androidx.media3.transformer.ExportException.CodecInfo)( cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!, @https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, codecInfo: https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.CodecInfo! )` Creates an instance for a `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Codec` related exception. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#createForUnexpected(java.lang.Throwable)(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!)` Creates an instance for an unexpected exception. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#errorInfoEquals(androidx.media3.transformer.ExportException)(other: https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException?)` Returns whether the error data associated to this exception equals the error data associated to `other`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#getErrorCodeName()()` Equivalent to `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#getErrorCodeName(int)`. |
| `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#getErrorCodeName(int)(@https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the name of a given `errorCode`. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.CodecInfo?` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#codecInfo()` The `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.CodecInfo` for codec related exceptions, or `null` if the exception is not codec related. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.ErrorCode https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#errorCode()` An error code which identifies the cause of the export failure. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#timestampMs()` The value of `https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtime()` when this exception was created. |

| ### Inherited functions |
|---|
| From [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) |---|---| | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/add-suppressed.html(exception: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!)` | | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/fill-in-stack-trace.html()` | | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-cause.html()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-localized-message.html()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-message.html()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-stack-trace.html()` | | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!>!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-suppressed.html()` | | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/init-cause.html(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/set-stack-trace.html(stackTrace: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/to-string.html()` | |

## Constants

### ERROR_CODE_AUDIO_PROCESSING_FAILED

```
const val ERROR_CODE_AUDIO_PROCESSING_FAILED = 6001: Int
```

Caused by an audio processing failure.

### ERROR_CODE_DECODER_INIT_FAILED

```
const val ERROR_CODE_DECODER_INIT_FAILED = 3001: Int
```

Caused by a decoder initialization failure.

### ERROR_CODE_DECODING_FAILED

```
const val ERROR_CODE_DECODING_FAILED = 3002: Int
```

Caused by a failure while trying to decode media samples.

### ERROR_CODE_DECODING_FORMAT_UNSUPPORTED

```
const val ERROR_CODE_DECODING_FORMAT_UNSUPPORTED = 3003: Int
```

Caused by trying to decode content whose format is not supported.

### ERROR_CODE_ENCODER_INIT_FAILED

```
const val ERROR_CODE_ENCODER_INIT_FAILED = 4001: Int
```

Caused by an encoder initialization failure.

### ERROR_CODE_ENCODING_FAILED

```
const val ERROR_CODE_ENCODING_FAILED = 4002: Int
```

Caused by a failure while trying to encode media samples.

### ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED

```
const val ERROR_CODE_ENCODING_FORMAT_UNSUPPORTED = 4003: Int
```

Caused by trying to encode content whose format is not supported. \*

Supported output formats are limited by the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Codec.DecoderFactory` available.

### ERROR_CODE_FAILED_RUNTIME_CHECK

```
const val ERROR_CODE_FAILED_RUNTIME_CHECK = 1001: Int
```

Caused by a failed runtime check.

This can happen when transformer reaches an invalid state.

### ERROR_CODE_IO_BAD_HTTP_STATUS

```
const val ERROR_CODE_IO_BAD_HTTP_STATUS = 2004: Int
```

Caused by an HTTP server returning an unexpected HTTP response status code.

### ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED

```
const val ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED = 2007: Int
```

Caused by the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/AssetLoader` trying to access cleartext HTTP traffic (meaning http:// rather than https://) when the app's Network Security Configuration does not permit it.

### ERROR_CODE_IO_FILE_NOT_FOUND

```
const val ERROR_CODE_IO_FILE_NOT_FOUND = 2005: Int
```

Caused by a non-existent file.

### ERROR_CODE_IO_INVALID_HTTP_CONTENT_TYPE

```
const val ERROR_CODE_IO_INVALID_HTTP_CONTENT_TYPE = 2003: Int
```

Caused by a server returning a resource with an invalid "Content-Type" HTTP header value.

For example, this can happen when the `https://developer.android.com/reference/kotlin/androidx/media3/transformer/AssetLoader` is expecting a piece of media, but the server returns a paywall HTML page, with content type "text/html".

### ERROR_CODE_IO_NETWORK_CONNECTION_FAILED

```
const val ERROR_CODE_IO_NETWORK_CONNECTION_FAILED = 2001: Int
```

Caused by a network connection failure.

The following is a non-exhaustive list of possible reasons:

- There is no network connectivity.
- The URL's domain is misspelled or does not exist.
- The target host is unreachable.
- The server unexpectedly closes the connection.

### ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT

```
const val ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT = 2002: Int
```

Caused by a network timeout, meaning the server is taking too long to fulfill a request.

### ERROR_CODE_IO_NO_PERMISSION

```
const val ERROR_CODE_IO_NO_PERMISSION = 2006: Int
```

Caused by lack of permission to perform an IO operation. For example, lack of permission to access internet or external storage.

### ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE

```
const val ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE = 2008: Int
```

Caused by reading data out of the data bound.

### ERROR_CODE_IO_UNSPECIFIED

```
const val ERROR_CODE_IO_UNSPECIFIED = 2000: Int
```

Caused by an Input/Output error which could not be identified.

### ERROR_CODE_MUXING_APPEND

```
const val ERROR_CODE_MUXING_APPEND = 7003: Int
```

Caused by mismatching formats in MuxerWrapper.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/MuxerWrapper.AppendTrackFormatException` |   |

### ERROR_CODE_MUXING_FAILED

```
const val ERROR_CODE_MUXING_FAILED = 7001: Int
```

Caused by a failure while muxing media samples.

### ERROR_CODE_MUXING_TIMEOUT

```
const val ERROR_CODE_MUXING_TIMEOUT = 7002: Int
```

Caused by a timeout while muxing media samples.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Transformer.Builder#setMaxDelayBetweenMuxerSamplesMs(long)` |   |

### ERROR_CODE_UNSPECIFIED

```
const val ERROR_CODE_UNSPECIFIED = 1000: Int
```

Caused by an error whose cause could not be identified.

### ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED

```
const val ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED = 5001: Int
```

Caused by a video frame processing failure.

## Public functions

### createForAssetLoader

```
java-static fun createForAssetLoader(cause: Throwable!, errorCode: Int): ExportException!
```

Creates an instance for an `https://developer.android.com/reference/kotlin/androidx/media3/transformer/AssetLoader` related exception.

| Parameters |
|---|---|
| `cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | The cause of the failure. |
| `errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | See `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#errorCode()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException!` | The created instance. |

### createForAudioProcessing

```
java-static fun createForAudioProcessing(
    exception: AudioProcessor.UnhandledAudioFormatException!,
    details: String!
): ExportException!
```

Creates an instance for an audio processing related exception.

| Parameters |
|---|---|
| `exception: https://developer.android.com/reference/kotlin/androidx/media3/common/audio/AudioProcessor.UnhandledAudioFormatException!` | The cause of the failure. |
| `details: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The details associated with this exception. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException!` | The created instance. |

### createForCodec

```
java-static fun createForCodec(
    cause: Throwable!,
    @ExportException.ErrorCode errorCode: Int,
    codecInfo: ExportException.CodecInfo!
): ExportException!
```

Creates an instance for a `https://developer.android.com/reference/kotlin/androidx/media3/transformer/Codec` related exception.

| Parameters |
|---|---|
| `cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | The cause of the failure. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | See `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#errorCode()`. |
| `codecInfo: https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.CodecInfo!` | The `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.CodecInfo`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException!` | The created instance. |

### createForUnexpected

```
java-static fun createForUnexpected(cause: Throwable!): ExportException!
```

Creates an instance for an unexpected exception.

If the exception is a runtime exception, error code `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_FAILED_RUNTIME_CHECK()` is used. Otherwise, the created instance has error code `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#ERROR_CODE_UNSPECIFIED()`.

| Parameters |
|---|---|
| `cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | The cause of the failure. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException!` | The created instance. |

### errorInfoEquals

```
fun errorInfoEquals(other: ExportException?): Boolean
```

Returns whether the error data associated to this exception equals the error data associated to `other`.

Note that this method does not compare the exceptions' stack traces.

### getErrorCodeName

```
fun getErrorCodeName(): String!
```

Equivalent to `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException#getErrorCodeName(int)`.

### getErrorCodeName

```
java-static fun getErrorCodeName(@ExportException.ErrorCode errorCode: Int): String!
```

Returns the name of a given `errorCode`.

## Public properties

### codecInfo

```
val codecInfo: ExportException.CodecInfo?
```

The `https://developer.android.com/reference/kotlin/androidx/media3/transformer/ExportException.CodecInfo` for codec related exceptions, or `null` if the exception is not codec related.

### errorCode

```
@ExportException.ErrorCode
val errorCode: Int
```

An error code which identifies the cause of the export failure.

### timestampMs

```
val timestampMs: Long
```

The value of `https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtime()` when this exception was created.