# FirebaseException

# FirebaseException


```
class FirebaseException : Exception
```

<br />

|---|---|---|---|
| [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](https://developers.google.com/android/reference/kotlin/com/google/firebase/FirebaseException.md.txt) |

Known direct subclasses [FirebaseApiNotAvailableException](https://developers.google.com/android/reference/kotlin/com/google/firebase/FirebaseApiNotAvailableException.md.txt)

|---|---|
| `FirebaseApiNotAvailableException` | Indicates that a requested API is not available. |

*** ** * ** ***

Base class for all Firebase exceptions.

## Summary

| ### Public constructors |
|---|
| `FirebaseException(detailMessage: String)` |
| `FirebaseException(detailMessage: String, cause: Throwable!)` |

| ### Protected constructors |
|---|
| `[FirebaseException](https://developers.google.com/android/reference/kotlin/com/google/firebase/FirebaseException#FirebaseException())()` **This function is deprecated.** Use other constructors instead. <br /> |

### Inherited functions

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 constructors

### FirebaseException

```
FirebaseException(detailMessage: String)
```

### FirebaseException

```
FirebaseException(detailMessage: String, cause: Throwable!)
```

## Protected constructors

### FirebaseException

```
protected [FirebaseException](https://developers.google.com/android/reference/kotlin/com/google/firebase/FirebaseException#FirebaseException())()
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use other constructors instead.