[android-components](../../../index.md) / [mozilla.components.feature.session](../../index.md) / [TrackingProtectionUseCases](../index.md) / [ContainsExceptionUseCase](./index.md)

# ContainsExceptionUseCase

`class ContainsExceptionUseCase` [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/feature/session/src/main/java/mozilla/components/feature/session/TrackingProtectionUseCases.kt#L86)

Use case for verifying if a [Session](../../../mozilla.components.browser.session/-session/index.md) is in the exception list.

### Functions

| Name | Summary |
|---|---|
| [invoke](invoke.md) | `operator fun invoke(session: `[`Session`](../../../mozilla.components.browser.session/-session/index.md)`, onResult: (`[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`) -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)<br>Indicates if a given [session](invoke.md#mozilla.components.feature.session.TrackingProtectionUseCases.ContainsExceptionUseCase$invoke(mozilla.components.browser.session.Session, kotlin.Function1((kotlin.Boolean, kotlin.Unit)))/session) is in the exception list. |
