# FirebaseException

# FirebaseException


```
public class FirebaseException extends Exception
```

<br />

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

Known direct subclasses [FirebaseApiNotAvailableException](https://developers.google.com/android/reference/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(@NonNull String detailMessage)` |
| `FirebaseException(@NonNull String detailMessage, Throwable cause)` |

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

### Inherited methods

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

## Public constructors

### FirebaseException

```
public FirebaseException(@NonNull String detailMessage)
```

### FirebaseException

```
public FirebaseException(@NonNull String detailMessage, Throwable cause)
```

## Protected constructors

### FirebaseException

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

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