> > [!WARNING]
> > **Warning:** This API is now obsolete.
>
> Firebase ML is deprecated and will be shut down on June 15, 2027. To host custom models, you must migrate to another solution. You can use Cloud Storage for Firebase as an alternative for hosting custom models. For more info, see https://firebase.google.com/docs/ml/migrate-to-cloud-storage

Firebase Machine Learning error code structure. This extends `FirebaseError`.

**Signature:**

    export declare class FirebaseMachineLearningError extends FirebaseError 

**Extends:** FirebaseError

## Constructors

| Constructor | Modifiers | Description |
|---|---|---|
| [(constructor)(info, message)](https://firebase.google.com/docs/reference/admin/node/firebase-admin.machine-learning.firebasemachinelearningerror#firebasemachinelearningerrorconstructor) |   | Constructs a new instance of the `FirebaseMachineLearningError` class |

## FirebaseMachineLearningError.(constructor)

Constructs a new instance of the `FirebaseMachineLearningError` class

**Signature:**

    constructor(info: ErrorInfo, message?: string);

### Parameters

| Parameter | Type | Description |
|---|---|---|
| info | ErrorInfo | The error code info. |
| message | string | The error message. If provided, this will override the default message. |