# GlUtil.GlException

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

*** ** * ** ***

<br />

```
class GlUtil.GlException : 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.common.util.GlUtil.GlException](https://developer.android.com/reference/kotlin/androidx/media3/common/util/GlUtil.GlException) |

*** ** * ** ***

Thrown when an OpenGL error occurs.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/util/GlUtil.GlException#GlException(java.lang.String)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Creates an instance with the specified error message. |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/util/GlUtil.GlException#GlException(java.lang.String,java.util.List<java.lang.Integer>)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, errorCodes: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>!)` Creates an instance with the specified error message and error codes. |

| ### Public properties |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/util/GlUtil.GlException#errorCodes()` The OpenGL error codes if present, empty if the error is not from the OpenGL engine. |

### 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()`

## Public constructors

### GlException

```
GlException(message: String!)
```

Creates an instance with the specified error message.

### GlException

```
GlException(message: String!, errorCodes: (Mutable)List<Int!>!)
```

Creates an instance with the specified error message and error codes.

## Public properties

### errorCodes

```
val errorCodes: ImmutableList<Int!>!
```

The OpenGL error codes if present, empty if the error is not from the OpenGL engine.