# ErrorFilter

Artifact: [androidx.webgpu:webgpu](https://developer.android.com/jetpack/androidx/releases/webgpu) [View Source](https://cs.android.com/search?q=file:androidx/webgpu/ErrorFilter.kt+class:androidx.webgpu.ErrorFilter) Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

*** ** * ** ***


```
class ErrorFilter
```

<br />

*** ** * ** ***

Defines the types of errors to be captured in an error scope.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/ErrorFilter#Internal() = 3` Captures internal implementation errors. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/ErrorFilter#OutOfMemory() = 2` Captures out-of-memory errors. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/ErrorFilter#Validation() = 1` Captures validation errors. |

| ### Public companion functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/webgpu/ErrorFilter#toString(kotlin.Int)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |

## Constants

### Internal

```
const val Internal = 3: Int
```

Captures internal implementation errors.

### OutOfMemory

```
const val OutOfMemory = 2: Int
```

Captures out-of-memory errors.

### Validation

```
const val Validation = 1: Int
```

Captures validation errors.

## Public companion functions

### toString

Added in [1.0.0-alpha06](https://developer.android.com/jetpack/androidx/releases/webgpu#1.0.0-alpha06)

```
fun toString(value: Int): String
```