# InjectEventSecurityException

Artifact: [androidx.test:monitor](https://developer.android.com/jetpack/androidx/releases/test) [View Source](https://cs.android.com/search?q=file:androidx/test/platform/ui/InjectEventSecurityException.java+class:androidx.test.platform.ui.InjectEventSecurityException)

*** ** * ** ***


```
public class InjectEventSecurityException extends Exception implements TestFrameworkException
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [kotlin.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) |||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) ||
|   |   | ↳ | [androidx.test.platform.ui.InjectEventSecurityException](https://developer.android.com/reference/androidx/test/platform/ui/InjectEventSecurityException) |

Known direct subclasses [InjectEventSecurityException](https://developer.android.com/reference/androidx/test/espresso/InjectEventSecurityException)

|---|---|
| `https://developer.android.com/reference/androidx/test/espresso/InjectEventSecurityException` | An checked `https://developer.android.com/reference/java/lang/Exception.html` indicating that event injection failed with a `https://developer.android.com/reference/java/lang/SecurityException.html`. |

*** ** * ** ***

An checked `https://developer.android.com/reference/java/lang/Exception.html` indicating that event injection failed with a `https://developer.android.com/reference/java/lang/SecurityException.html`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/test/platform/ui/InjectEventSecurityException#InjectEventSecurityException(java.lang.Throwable)(https://developer.android.com/reference/java/lang/Throwable.html cause)` |
| `https://developer.android.com/reference/androidx/test/platform/ui/InjectEventSecurityException#InjectEventSecurityException(java.lang.String)(https://developer.android.com/reference/java/lang/String.html message)` |
| `https://developer.android.com/reference/androidx/test/platform/ui/InjectEventSecurityException#InjectEventSecurityException(java.lang.String,java.lang.Throwable)(https://developer.android.com/reference/java/lang/String.html message, https://developer.android.com/reference/java/lang/Throwable.html cause)` |

### Inherited methods

From [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) `synchronized final void` `https://developer.android.com/reference/java/lang/Throwable.html#addSuppressed(java.lang.Throwable)(https://developer.android.com/reference/java/lang/Throwable.html exception)` `synchronized https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#fillInStackTrace()()` `synchronized https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#getCause()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#getLocalizedMessage()()` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#getMessage()()` `StackTraceElement[]` `https://developer.android.com/reference/java/lang/Throwable.html#getStackTrace()()` `synchronized final Throwable[]` `https://developer.android.com/reference/java/lang/Throwable.html#getSuppressed()()` `synchronized https://developer.android.com/reference/java/lang/Throwable.html` `https://developer.android.com/reference/java/lang/Throwable.html#initCause(java.lang.Throwable)(https://developer.android.com/reference/java/lang/Throwable.html cause)` `void` `https://developer.android.com/reference/java/lang/Throwable.html#printStackTrace()()` `void` `https://developer.android.com/reference/java/lang/Throwable.html#setStackTrace(java.lang.StackTraceElement[])(StackTraceElement[] stackTrace)` `https://developer.android.com/reference/java/lang/String.html` `https://developer.android.com/reference/java/lang/Throwable.html#toString()()`

## Public constructors

### InjectEventSecurityException

```
public InjectEventSecurityException(Throwable cause)
```

### InjectEventSecurityException

```
public InjectEventSecurityException(String message)
```

### InjectEventSecurityException

```
public InjectEventSecurityException(String message, Throwable cause)
```