# ExemptionMechanismException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# ExemptionMechanismException

```
open class ExemptionMechanismException : GeneralSecurityException
```

|---|---|---|---|--------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)                                                 ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/kotlin/java/lang/Exception.html#)                                            |||
|   |   | ↳ | [java.security.GeneralSecurityException](https://developer.android.com/reference/kotlin/java/security/GeneralSecurityException.html#)   ||
|   |   |   | ↳ | [javax.crypto.ExemptionMechanismException](https://developer.android.com/reference/kotlin/javax/crypto/ExemptionMechanismException#) |

This is the generic ExemptionMechanism exception.

## Summary

|                                                                                                                                                               Public constructors                                                                                                                                                                ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [ExemptionMechanismException](https://developer.android.com/reference/kotlin/javax/crypto/ExemptionMechanismException#ExemptionMechanismException())`()` Constructs a ExemptionMechanismException with no detailed message.                                                                                                                   |
| [ExemptionMechanismException](https://developer.android.com/reference/kotlin/javax/crypto/ExemptionMechanismException#ExemptionMechanismException(kotlin.String))`(`msg:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` Constructs a ExemptionMechanismException with the specified detailed message. |

## Public constructors

### ExemptionMechanismException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
ExemptionMechanismException()
```

Constructs a ExemptionMechanismException with no detailed message. (A detailed message is a String that describes this particular exception.)  

### ExemptionMechanismException

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
ExemptionMechanismException(msg: String!)
```

Constructs a ExemptionMechanismException with the specified detailed message. (A detailed message is a String that describes this particular exception.)

|                                                   Parameters                                                   ||
|-------|---------------------------------------------------------------------------------------------------------|
| `msg` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!:the detailed message. |