Custom error class for errors originating from the StreamingManager. StreamError

Hierarchy

  • GMIError
    • StreamError

Constructors

  • Creates an instance of StreamError.

    Parameters

    • message: string

      The human-readable error message.

    • code: string

      A specific error code (can be from GMIErrorCode or custom).

    • Optional streamId: string

      The ID of the stream involved.

    • Optional clientId: string

      The ID of the client involved.

    • Optional details: any

      Optional additional context or the underlying error.

    Returns StreamError

Methods

  • Returns number

  • Returns string

  • Returns Record<string, any>

  • Returns Record<string, any>

  • Parameters

    • error: unknown

    Returns error is GMIError

  • Parameters

    • error: unknown
    • code: string
    • Optional message: string
    • Optional componentOrigin: string

    Returns GMIError

Properties

streamId?: string

The ID of the stream involved in the error, if applicable.

clientId?: string

The ID of the client involved in the error, if applicable.

code: string
details?: any
component?: string
timestamp: string
httpStatusCode?: number
cause?: unknown