# FirebaseAuthWeakPasswordException

```kotlin
class FirebaseAuthWeakPasswordException : FirebaseAuthInvalidCredentialsException
```

|     |     |     |     |     |     |     |
| --- | --- | --- | --- | --- | --- | --- |
| [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/java/lang/Exception.html) |
|  |  | ↳ | [com.google.firebase.FirebaseException](/content/docs/reference/kotlin/com/google/firebase/FirebaseException/index.html) |
|  |  |  | ↳ | [com.google.firebase.auth.FirebaseAuthException](/content/docs/reference/kotlin/com/google/firebase/auth/FirebaseAuthException/index.html) |
|  |  |  |  | ↳ | [com.google.firebase.auth.FirebaseAuthInvalidCredentialsException](/content/docs/reference/kotlin/com/google/firebase/auth/FirebaseAuthInvalidCredentialsException/index.html) |
|  |  |  |  |  | ↳ | [com.google.firebase.auth.FirebaseAuthWeakPasswordException](/content/docs/reference/kotlin/com/google/firebase/auth/FirebaseAuthWeakPasswordException/index.html) |

* * *

Thrown when using a weak password (less than 6 chars) to create a new account or to update an existing account's password. Use `getReason` to get a message with the reason the validation failed that you can display to your users.

## Summary

| ### Public properties |
| --- |
| `String?` | `reason` |

| ### Inherited functions |
| --- |
| From [com.google.firebase.auth.FirebaseAuthException](/content/docs/reference/kotlin/com/google/firebase/auth/FirebaseAuthException/index.html)

|     |     |
| --- | --- |
| `String!` | `getErrorCode()` | |
| From [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html)

|     |     |
| --- | --- |
| `synchronized Unit` | `addSuppressed(p: Throwable!)` |
| `synchronized Throwable!` | `fillInStackTrace()` |
| `synchronized Throwable!` | `getCause()` |
| `String!` | `getLocalizedMessage()` |
| `String!` | `getMessage()` |
| `Array<StackTraceElement!>!` | `getStackTrace()` |
| `synchronized Array<Throwable!>!` | `getSuppressed()` |
| `synchronized Throwable!` | `initCause(p: Throwable!)` |
| `Unit` | `printStackTrace()` |
| `Unit` | `setStackTrace(p: Array<StackTraceElement!>!)` |
| `String!` | `toString()` | |

## Public properties

### reason

```
val reason: String?
```
