Skip to content

BlockSuite API Documentation / @blocksuite/blocks / UnauthorizedError

Class: UnauthorizedError

Extends

  • BaseAIError

Constructors

new UnauthorizedError()

new UnauthorizedError(): UnauthorizedError

Returns

UnauthorizedError

Overrides

BaseAIError.constructor

Source

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

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: Unauthorized = AIErrorType.Unauthorized

Overrides

BaseAIError.type

Source

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


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.12/node_modules/@types/node/globals.d.ts:28


stackTraceLimit

static stackTraceLimit: number

Inherited from

BaseAIError.stackTraceLimit

Source

node_modules/.pnpm/@types+node@20.12.12/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.12/node_modules/@types/node/globals.d.ts:21