# FormatException

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

# FormatException

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/nfc/FormatException "View this page in Java")  

```
open class FormatException : Exception
```

|---|---|---|------------------------------------------------------------------------------------------------------------|
| [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#)               ||
|   |   | ↳ | [android.nfc.FormatException](https://developer.android.com/reference/kotlin/android/nfc/FormatException#) |

## Summary

|                                                                                                                                                                     Public constructors                                                                                                                                                                      ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [FormatException](https://developer.android.com/reference/kotlin/android/nfc/FormatException#FormatException())`()` <br />                                                                                                                                                                                                                                |
| [FormatException](https://developer.android.com/reference/kotlin/android/nfc/FormatException#FormatException(kotlin.String))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` <br />                                                                                                                     |
| [FormatException](https://developer.android.com/reference/kotlin/android/nfc/FormatException#FormatException(kotlin.String,%20kotlin.Throwable))`(`message:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `e:` `[Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html)!`)` <br /> |

## Public constructors

### FormatException

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

```
FormatException()
```  

### FormatException

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

```
FormatException(message: String!)
```  

### FormatException

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

```
FormatException(
    message: String!, 
    e: Throwable!)
```