Skip to content

BlockSuite API Documentation / @blocksuite/blocks / GeneralNetworkError

Class: GeneralNetworkError

Extends

  • BaseAIError

Constructors

new GeneralNetworkError(message)

new GeneralNetworkError(message): GeneralNetworkError

Parameters

message: string= 'Network error'

Returns

GeneralNetworkError

Overrides

BaseAIError.constructor

Source

packages/blocks/src/_common/components/ai-item/types.ts:49

Properties

cause?

optional cause: unknown

Inherited from

BaseAIError.cause

Source

node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es2022.error.d.ts:24


message

message: string

Inherited from

BaseAIError.message

Source

node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:1077


name

name: string

Inherited from

BaseAIError.name

Source

node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:1076


stack?

optional stack: string

Inherited from

BaseAIError.stack

Source

node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:1078


type

readonly type: GeneralNetworkError = AIErrorType.GeneralNetworkError

Overrides

BaseAIError.type

Source

packages/blocks/src/_common/components/ai-item/types.ts:48


prepareStackTrace()?

static optional prepareStackTrace: (err, stackTraces) => any

Optional override for formatting stack traces

See

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Parameters

err: Error

stackTraces: CallSite[]

Returns

any

Inherited from

BaseAIError.prepareStackTrace

Source

node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/globals.d.ts:28


stackTraceLimit

static stackTraceLimit: number

Inherited from

BaseAIError.stackTraceLimit

Source

node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/globals.d.ts:30

Methods

captureStackTrace()

static captureStackTrace(targetObject, constructorOpt?): void

Create .stack property on a target object

Parameters

targetObject: object

constructorOpt?: Function

Returns

void

Inherited from

BaseAIError.captureStackTrace

Source

node_modules/.pnpm/@types+node@20.12.7/node_modules/@types/node/globals.d.ts:21