# GlShaderProgram.ErrorListener

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

*** ** * ** ***


```
public interface GlShaderProgram.ErrorListener
```

<br />

*** ** * ** ***

Listener for video frame processing errors.

This listener can be called from any thread.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/effect/GlShaderProgram.ErrorListener#onError(androidx.media3.common.VideoFrameProcessingException)(https://developer.android.com/reference/androidx/media3/common/VideoFrameProcessingException e)` Called when an exception occurs during asynchronous video frame processing. |

## Public methods

### onError

```
abstract void onError(VideoFrameProcessingException e)
```

Called when an exception occurs during asynchronous video frame processing.

If an error occurred, consuming and producing further frames will not work as expected and the `https://developer.android.com/reference/androidx/media3/effect/GlShaderProgram` should be released.