Class MindsDbError

An error that occurs at the MindsDB level (e.g. API request, query execution).

Hierarchy

  • Error
    • MindsDbError

Constructors

Properties

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • Creates a MindsDB error from an AxiosError, with a more readable error message.

    Returns

    • New MindsDB error.

    Parameters

    • axiosError: AxiosError<unknown, any>

      Original Axios Error

    Returns MindsDbError

  • Creates a MindsDB error from an error thrown during an HTTP request, with a more readable error message.

    Returns

    • New MindsDB error.

    Parameters

    • error: unknown
    • url: string

    Returns MindsDbError

  • Parameters

    • axiosError: AxiosError<unknown, any>

    Returns string

Generated using TypeDoc