BlockSuite API Documentation / @blocksuite/blocks / GeneralNetworkError
Class: GeneralNetworkError
Extends
BaseAIError
Constructors
new GeneralNetworkError()
new GeneralNetworkError(
message):GeneralNetworkError
Parameters
• message: string= 'Network error'
Returns
Overrides
BaseAIError.constructor
Source
packages/blocks/src/_common/components/ai-item/types.ts:57
Properties
cause?
optionalcause: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?
optionalstack:string
Inherited from
BaseAIError.stack
Source
node_modules/.pnpm/typescript@5.4.5/node_modules/typescript/lib/lib.es5.d.ts:1078
type
readonlytype:GeneralNetworkError=AIErrorType.GeneralNetworkError
Overrides
BaseAIError.type
Source
packages/blocks/src/_common/components/ai-item/types.ts:56
prepareStackTrace()?
staticoptionalprepareStackTrace: (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.12/node_modules/@types/node/globals.d.ts:28
stackTraceLimit
staticstackTraceLimit:number
Inherited from
BaseAIError.stackTraceLimit
Source
node_modules/.pnpm/@types+node@20.12.12/node_modules/@types/node/globals.d.ts:30
Methods
captureStackTrace()
staticcaptureStackTrace(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.12/node_modules/@types/node/globals.d.ts:21